Introduction
The Sleep Instruction is used to delay further processing in a workflow by a given amount of time.
- The instruction works on any supported platforms.
- The instruction can be suspended and can be resumed.
The feature is introduced with - JS-2149Getting issue details... STATUS
FEATURE AVAILABILITY STARTING FROM RELEASE 2.7.4
Workflow Instruction: Sleep
Download Workflow Example (upload .json): pdSleepFixed.workflow.json
Configuration View
The workflow implements:
- an initial job,
- a Sleep Instruction that will delay processing of further instructions by 15s,
- a final job.
The Sleep Instruction is displayed with the Configuration view like this:
Explanations:
- Duration: specifies the number of seconds to sleep.
- A numeric value is expected either from a number or from a variable of numeric data type.
- Fractions of seconds can be specified, for example a value 0.003 will wait for 3ms.
- Behavior with order state transitions:
- If an order should be suspended, then the Sleep Instruction will continue until completion. After completion of the instruction the order will be suspended.
- If the suspend/reset operation is applied (see - JS-2152Getting issue details... STATUS ) then the Sleep Instruction will stop execution and will discard the remaining sleep duration.
- The Sleep Instruction does not perform an order state transition, this means it cannot fail.
Execution View
The Sleep Instruction is displayed with the Workflows view like this:
- Orders meeting a Sleep Instruction will be moved to the waiting state.
- When hovering the mouse on the Order ID, more details will be presented including the time until the instruction will be executed.