Workflow.sendEvent()
The .sendEvent()
resumes execution when an event is sent.
Usage
workflow.sendEvent('my-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