Skip to content

getContext

getContext(): WorkflowContext

Defined in: core/src/core/context.ts:149

WorkflowContext

Use the context parameter directly from workflow handlers instead. The context passed to handlers already includes all state properties.

workflow.handle([startEvent], (context, event) => \{
const { sendEvent \} = context;
sendEvent(processEvent.with());
});