Skip to main content

Workflow.sendEvent()

The .sendEvent() resumes execution when an event is sent.

Usage example

workflow.sendEvent("event-name", step1);

Parameters

eventName:

string
The name of the event to send

step:

Step
The step to resume after the event is sent

Returns

workflow:

Workflow
The workflow instance for method chaining