sleep
IMPORTANT!
Starting with v24.3.0, this is renamed from delayMSec to sleep.
Starting with v24.3.0, this is renamed from delayMSec to sleep.
Pauses the workflow execution for the specified number of milliseconds.
This is suitable for routes of business service components.
Syntax
function sleep(milliseconds: number): void
| Parameter | Description |
|---|---|
milliseconds
|
The duration in milliseconds you wish to pause the workflow execution. |
Examples
In this example, we insert a 5000 milliseconds delay in the workflow execution:
sleep(5000);