Skip to main content

Wait

The wait task is used when the workflow needs to be paused for an external signal to continue. It is used when the workflow needs to wait and pause for external signals, such as a human intervention (like manual approval).

Definitions

   {
"name": "wait",
"taskReferenceName": "wait_ref",
"type": "WAIT",
"inputParameters": {
"until": "2024-04-30 15:20 GMT+04:00",
"key": "${workflow.input.value}"
}
}

Input Parameters

ParameterDescription
Wait typeIndicates the type of wait period. Supported types include until, duration, and signal.
  • Until - Used to wait until a specified date & time, including the timezone. The date/time can be supplied in the format: YYYY-MM-DD hh:mm a/pm. For example, 2024-04-30 15:20 GMT+04:00.
    • On choosing the date & time, it displays the computed value. This value can also be passed as a variable.
  • Duration - Specifies the wait duration in the format x hours x days x minutes x seconds. The accepted units in this field are days, d, hrs, hours, h, minutes, mins, m, seconds, secs, and s.
  • Signal - Configure this option if the workflow needs to wait for an external signal, such as a manual approval.
inputParametersConfigure the input parameters required for the task. It can also be passed as a variable.

Examples



  1. Add task type Wait.
  2. Select the wait type and provide its configuration.

Adding wait task

Simple Workflow

The following task waits until Dec 25, 2026, 9 am GST. Yes, that's right, 2026!

{
"name": "wait",
"taskReferenceName": "wait_ref",
"type": "WAIT",
"inputParameters": {
"until": "2026-12-25 09:00 GMT+04:00"
}
}