Use Pause for Duration to delay the next workflow step by a fixed or variable calendar duration. The step suspends the workflow until the duration ends, or completes immediately when the resolved duration is zero.
Step Library: Flow Control > Waiting
When to use this step
Use this step when you want to:
- wait for a relative duration before continuing a workflow;
- calculate some or all duration units from Number variables;
- pause repeatedly inside a loop while keeping each timer separate.
Common examples include:
- sending a follow-up two days after an earlier action;
- waiting before checking an external result again; or
- applying a different waiting period to each workflow instance or loop iteration.
Use Pause until Date/Time instead when the workflow must resume at a specific date and time.
Before you begin
This step does not require a connection or special permissions.
If the duration is dynamic, create or identify the Number variables that provide its units. Each variable must contain a non-negative whole number when the step executes.
Configure the step
- Add Pause for Duration from Flow Control > Waiting.
- Select the step to open its configuration panel.
- Under Duration, change at least one duration unit from Not set to Value or Variable.
- Enter a non-negative whole number or select a Number variable for each required unit.
- Save or publish the workflow.
Settings
| Setting | Required | Accepted values | Visible when | Description |
|---|---|---|---|---|
| Minute(s) | No | Non-negative whole Number or Number variable | Always | Adds minutes to the duration. The default is Not set; selecting Value initially sets the field to 1. A fixed value has no field-specific maximum, but the resulting target must not exceed the workflow timer limit described below. |
| Hour(s) | No | Non-negative whole Number or Number variable | Always | Adds hours to the duration. The default is Not set; selecting Value initially sets the field to 1. A fixed value has no field-specific maximum, but the resulting target must not exceed the workflow timer limit described below. |
| Day(s) | No | Non-negative whole Number or Number variable | Always | Adds days to the duration. The default is Not set; selecting Value initially sets the field to 1. A fixed value has no field-specific maximum, but the resulting target must not exceed the workflow timer limit described below. |
| Week(s) | No | Non-negative whole Number or Number variable | Always | Adds seven calendar days per unit. The default is Not set; selecting Value initially sets the field to 1. A fixed value has no field-specific maximum, but the resulting target must not exceed the workflow timer limit described below. |
| Month(s) | No | Non-negative whole Number or Number variable | Always | Adds calendar months in UTC and clamps the day to the final valid day of the target month when needed. The default is Not set; selecting Value initially sets the field to 1. The resulting target must remain within the workflow timer limit. |
| Year(s) | No | Fixed whole Number from 0 to 1, or Number variable |
Always | Adds calendar years in UTC and clamps a leap-day start to the final valid day of February when needed. The default is Not set; selecting Value initially sets the field to 1. A variable is validated when the step executes. |
No individual setting is required, but at least one of the six duration units must be configured. Configured units can resolve to 0; an entirely unset duration is invalid.
Data and outputs
Workflow variable effects
This step does not modify workflow variables.
Number variables selected in the settings are read when the step starts. Their values are not changed by the step and are not evaluated again while the workflow is waiting.
Step outputs
This step does not expose step outputs.
Runtime behavior
Execution and completion
When the step starts, Flowifier:
- resolves every configured fixed value and Number variable;
- verifies that each resolved unit is a finite, non-negative whole number;
- adds years and months in UTC with calendar-end clamping, followed by weeks, days, hours, and minutes;
- calculates one target date and time from the moment the step executes;
- completes immediately without creating a timer when the target is the current time, as happens when every configured unit resolves to
0; or - persists the target and suspends the workflow until the timer is due.
The target must be no later than one UTC calendar year after the workflow instance started. This boundary is based on the original workflow start, not on the time this step executes. Re-entering the step in a loop therefore does not move the boundary forward.
When the timer becomes due, the scheduler resumes the instance and the workflow continues with the next step. Each workflow instance and each loop iteration keeps its own persisted timer state.
Branches and child steps
This step does not have branches or child steps.
Pause for Duration can itself be placed inside a loop or another container. The container suspends with the step. After resumption, execution continues in the same branch and iteration; completed child steps are not repeated because of the resume.
Failure, retry and resume behavior
This step does not automatically retry a failed duration or timer request.
The suspension snapshot retains the calculated target. On resume, Flowifier uses that persisted target instead of recalculating the duration or reading the selected variables again. Existing persisted timers are not revalidated against a newly evaluated target.
If the instance is cancelled while waiting, it remains cancelled after the timer becomes due and no following step runs. A different instance of the same workflow has independent timer state and can continue normally.
The step does not call an external provider, create external side effects, or terminate the workflow by itself.
Errors and limits
| Situation | Result | Resolution |
|---|---|---|
| Every duration unit is Not set | The Designer shows Enter at least one duration value or select a Number variable. and the workflow cannot be published. | Configure at least one duration unit with Value or Variable. |
| A fixed value is negative | The field shows Value must be at least 0, and publishing is blocked. | Enter 0 or a positive whole number. |
| A fixed value contains a decimal | The field shows Enter a whole number, and publishing is blocked. | Enter a whole number. |
A fixed Year(s) value is greater than 1
|
The field shows Value must be at most 1, and publishing is blocked. | Enter 0 or 1, or use another combination of valid units whose target remains within the timer limit. |
| A variable is missing, is not a Number, or resolves to a non-finite value | The step fails before creating a timer. | Select an available Number variable and ensure it contains a finite whole number. |
| A variable resolves to a negative or decimal value | The step fails before creating a timer. | Set every selected variable to a non-negative whole number before the step executes. |
| The calculated target is later than one calendar year after workflow start | The step fails with The wait time is invalid. Choose a valid date or non-negative duration that ends no later than one year after the workflow started. | Reduce the duration so that its target is no later than the workflow instance's one-year anniversary. Re-entering the step does not reset this boundary. |
Every configured unit resolves to 0
|
The step completes immediately without suspension, retry, workflow-variable change, or step output. | No action is required. Use this behavior when a calculated wait can validly be zero. |
The one-year limit applies to the timer target, not only to the duration configured on the current step. Other suspension types can have their own lifecycle rules.
Example
Wait for one day, two hours, and thirty minutes
Goal: Delay the next workflow step by a combined calendar duration.
Configuration:
-
Minute(s):
30 -
Hour(s):
2 -
Day(s):
1 - Week(s): Not set
- Month(s): Not set
- Year(s): Not set
Result: When the step executes, Flowifier calculates one target by adding one day, two hours, and thirty minutes. If that target is within one calendar year of the workflow start, the instance is suspended until the target is due and then continues with the next step.
Related information
- Pause until Date/Time — resume at a specific date and time instead of waiting for a relative duration.
- Add Interval to Date — calculate a Date value by adding or subtracting calendar units without suspending the workflow.
- Repeat a Number of Times — repeat a child branch that can contain Pause for Duration.
- Workflow variables — provide dynamic Number values for duration units.
Comments
0 comments
Please sign in to leave a comment.