Skip to content

Latest commit

 

History

History

README.md

Standalone Activity

This sample shows how to execute Activities directly from a Temporal Client, without a Workflow.

Running this sample

  1. temporal server start-dev to start Temporal Server.
  2. npm install to install dependencies.
  3. npm run start.watch to start the Worker.
  4. In another shell, npm run execute to execute the activity in different ways.

Example output:

Hello, Temporal!
Hello, World!
Hello, Temporal!
Oops! name must be a string

Afterwards, you can run npm run list to see a listing of activity executions.