Skip to main content

Update Wait Step Status Using Completion Token

In some processes, you may want to update the status of a Wait Step based on an external event or specific condition. This is made possible using the Completion Token mechanism.


📌 Defining a Wait Step with Completion Token

To enable external step updates, define your Wait Step like this:

return {
"waitUntil": waitUntil,
"completionToken": "xyz"
}
  • waitUntil: The usual wait condition (e.g., timestamp).
  • completionToken: A unique identifier (like "xyz") that links this step to an external update trigger.

🧭 Visualizing Waiting Steps

You can view & monitor all the Wait Steps along with their IDs waiting for a Completion Token in:

Admin Tools → Steps Waiting for Completion Token

Analyzing Execution


🔄 Updating the Wait Step Using UPDATE_STEP

To programmatically update a WAIT step status, use the UPDATE_STEP step type.

Configuration

FieldDescription
Step NameA meaningful name (e.g., new_update_step)
RefUnique reference ID for this step
Update Step BySelect Completion Token from the dropdown
Completion TokenEnter the exact token value used in the Wait Step (e.g., xyz)
Update Step Status ToChoose the desired status (e.g., COMPLETED)
Allow Completion Without Match (optional)Enable if no matching Wait Step should not cause failure

🖼️ Sample Configuration Screenshot

Update Step Using Completion Token


🚀 How It Works

Once the UPDATE_STEP is executed:

  • It searches for Wait Steps with a matching completionToken.
  • If a match is found, the Wait Step's status is updated (e.g., to COMPLETED).
  • The process then resumes from that point.