Pause and Resume
The Pause and Resume blocks are used to control workflow execution. The Pause block temporarily stops a workflow. The Resume block restarts a paused workflow.
Pausing and resuming workflows
In the following procedures, two sample workflows are used to illustrate how to use the Pause and
Resume blocks:
- Workflow A: Uses the Pause and Resume blocks to pause and resume another workflow, that is, Workflow B.
- Workflow B: A long-running workflow that is paused and resumed by Workflow A.
- Pausing a workflow
-
- Go to the Logs page.
- Find the workflow that you want to pause, that is, Workflow B.
- Expand the workflow execution entry and copy the execution ID from the Log field.
- Go to the Workflows page and open or create another workflow, that is, Workflow A.
- In the workflow editor, in the integration list, open the Common integration.
- Drag and drop a Pause block into the workflow.
- In the Pause block, in the flowUuid field, paste the execution ID of Workflow B.
- Click Run to execute Workflow A and pause Workflow B.
- Return to the Logs page to confirm that Workflow B is paused.
Note: If the flowUuid field is empty, Workflow A pauses itself when it runs.
- Resuming a paused workflow
-
- Reopen Workflow A.
- Turn off the switch in the Pause block header to disable it.
- Drag and drop a Resume block into the workflow.
- In the Resume block, in the flowUuid field, paste the execution ID of Workflow B.
- Click Run to execute Workflow A and resume Workflow B.
- Return to the Logs page to confirm that Workflow B resumed.
Important: You cannot use the Resume block to restart the current workflow if it is paused. Use the Resume in the Debugger section instead.
Disabling the Pause and Resume blocks
To temporarily disable a block without deleting, turn off the switch in the block header.