Sleep

Sleep makes the current job pause for a specific amount of time. This can be useful in a number of scenarios, for example when communicating with other systems in a fire-and-forget type of interaction (that is, when you don't get any response from the other system).

Behind the scenes the component utilizes the Thread.sleep() functionality but offers a simplified - i.e. human readable - way to set hours, minutes, or seconds.

Usage

In the dialog you simply enter the number of hours, minutes, or seconds you wish your script to sleep and you'll get something like this:

Utils.sleep(0, 2, 36);

More than 59 seconds

If you specify more than 59 seconds it will count as minutes and seconds. For example specifying:

Utils.sleep(0, 0, 70);

Is the same as:

Utils.sleep(0, 1, 10);