This operation builds a resume-process command payload. Use it to resume a previously suspended process instance.
The base command is:
processPayloadBuilder.resume()
You can use the following options:
| Option | Description |
|---|---|
| withProcessInstance(processInstance: ProcessInstance) | Specifies the process instance to resume. |
| withProcessInstanceId(processDefinitionId: string) | Specifies the ID of the process instance to resume. |
The following is the command example:
processPayloadBuilder
.resume()
.withProcessInstanceId(variables.processInstanceId)
.build();
processPayloadBuilder.resume() creates a resume-process payload builder. withProcessInstanceId(variables.processInstanceId) specifies the process instance to resume by using the value stored in the processInstanceId process variable. build() creates the final command payload that can be sent to the runtime command channel.