This sample shows how to share dependencies between Activities: for example, when you need to initialize a database connection once and then pass it to multiple Activities.
temporal server start-devto start Temporal Server.npm installto install dependencies (orpnpmoryarn).npm run start.watchto start the Worker.- In another shell,
npm run workflowto run the Workflow.
The Workflow should return:
Hello: Temporal
Hola: Temporal