Make the instance sleep for a given time period

Use this step to make an instance wait for a certain date time and then execute further.

Last published at: July 25th, 2023

waitForDateTime Step

Description:

This step waits for the mentioned date and time and executes the next step.

 

Inputs

  • waitDateTime – Wait till
  • timeZone - select time zone
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

Usage:

 

 

Example:

Let’s build and execute the waitForDateTimeDef example.          

  • Create a new definition called “waitForDateTimeDef” 
  • Select the definition and click the “design” button
  • Drag a “waitForDateTime” and “placeHolder” step to the canvas
  • Connect the dots between the steps as shown above 
  • Click on the “waitForDateTime” step to configure its “Settings” properties. Provide a name to the step. Select the time zone from the dropdown list. Configure the wait date and time. Click on “Save” to confirm changes. 

 

  • The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new process instance, and execute. Render the process instance. The process instance is “sleeping” at the wait step. The instance continues to sleep until the configured date and time and executes the next step later.