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-dev
to start Temporal Server.npm install
to install dependencies.npm run start.watch
to start the Worker.- In another shell,
npm run workflow
to run the Workflow.
The Workflow should return:
Hello: Temporal
Hola: Temporal