Wait¶
The Wait Step waits for a specified time before proceeding to another step. One possible use would be to wait for changes on the operator level to take effect. This may be done by:
-
Specifying a number of time units
-
Specifying an expression that evaluates to a string, date or instant.
Syntax
1 2 3 4 | // Wait by specifying a number of time units wait for <number Number> <units Unit> // Wait by specifying an expression that evaluates to an absolute time wait until <expression Expression> |
Parameters
-
number - The amount of time to wait
-
units - One of
milliseconds
,second
,seconds
minute
,minutes
,hour
orhours
-
expression - Any expression that evaluates to a string, date or instant:
- Strings must be in one of the following formats:
HH:mm
orHH:mm:ss
- Leading zeros, for example, in
09:00
can be omitted
- Leading zeros, for example, in
- If a string given represents a time in the past, for example,
"16:41"
, the step will wait for that same time the following day - If a date or instant given is in the past, then the step will succeed immediately
- Strings must be in one of the following formats:
Example
1 2 3 4 5 6 7 | // Wait by specifying a number of time units And wait for 300 seconds // Wait by specifying an expression that evaluates to an absolute time And wait until "16:41" And wait until "16:41:37" And wait until date And wait until instant |
In the example above, date
and instant
will be taken from the context. If they do not exist, the step will fail.