Durable Vocabulary
These are the awaits WorkflowRuntime understands. They replace graph node types. Designer JSON uses the same names.
| Await | Dart | JSON | Persisted as |
|---|---|---|---|
| Operation | workflow.perform(...) | operation | operation command |
| Work | workflow.request | work | work command and WorkItem |
| Event | workflow.waitForEvent | event | event wait |
| Timer | workflow.sleep | timer | timer command |
| Call | workflow.workflow | call | child run + join |
| Spawn / join | workflow.spawn / join | spawn / join | child handle |
| Parallel / race / quorum | workflow.parallel / race / quorum | named branches | join + loser cancel |
| forEach | workflow.forEach | forEach | keyed fan-out |
| Saga | workflow.saga | saga | compensate in reverse |
| Continue as new | workflow.continueAsNew | continueAsNew | successor run |
| Query | workflow.query | query | read-only snapshot |
An actor can be a person, user, group, role, software agent, bot, or service. request creates assigned work for any such actor; respond records the result. Automated handler code is an operation. Events communicate facts without creating an audience.