Skip to content

santiagoflores995/demo-santi-poc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signals and Queries

This example demonstrates the usage of Signals, Queries, and Workflow Cancellation.

Signals, Queries, and cancellation messages are sent through the WorkflowClient:

src/client.ts

and are handled in the Workflow:

src/workflows.ts

Running this sample

  1. Make sure Temporal Server is running locally (see the quick install guide).
  2. npm install to install dependencies.
  3. npm run start.watch to start the Worker.
  4. In another shell, npm run workflow.start to run the Workflow.
  5. Run npm run workflow.query to query the Workflow. Should print blocked? true
  6. Run npm run workflow.signal to unblock the Workflow. Should print unblockSignal sent
  7. Run npm run workflow.query to query the Workflow. Should print blocked? false

About

Demo of temporal for use in test automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 70.5%
  • JavaScript 29.5%