Logical Date and Real Date

Executable objects can be configured to be executed at a specific point in time. They can also be part of other executable objects, such as Workflows and Schedules, that automate their executions. Based on their configuration and their Calendar and time conditions, determine a particular date for their executions. The Automation Engine uses two dates, the real date and the logical date. The real date is the actual date on which a task is generated. The logical date is an artificial date that is defined either manually by the user or by a process (a Workflow or a Schedule).

Real Date

Logical Date

Logical dates are used for calendar calculations in situations in which you must specify a point in time for an execution. This point in time can be in the future or in the past. For example, a Workflow that should have been executed yesterday has failed and you need the report that results from its execution today. You can execute the Workflow manually using the Execute Once option and set the Logical date to yesterday.

If you do not specify a particular date for the execution of an object, the logical date coincides with the real date. In Workflow tasks, the logical date is inherited from the parent Workflow. This is also true for Workflows that are embedded in Workflows. The top Workflow determines the logical date for the whole structure.

The logical date includes a date and a time. Only the date is important for the calendar calculations. The time is used to handle date changes that can result from time zone or time differences.

Example:

You start a long-running Workflow everyday at 16:00. The last task of the Workflow must be executed only once a week on Fridays and, therefore, it has a Calendar condition that is assigned to it. Today is Friday and the Workflow runs much too long. It is already Saturday when the second to last task is finished. The Workflow is executed including the last task because the logical date of all its tasks is inherited from the Workflow. In this case, it is Friday. If you need the Friday run of the Workflow on Saturday, you can execute the Workflow using the Execute Once option. On the dialog, activate the Use logical date on the dialog checkbox and select the previous Friday and an earlier time. The Workflow is executed as if it were Friday and also the last task will be processed.

Usages of the Logical Date

The logical date is used for the following functions:

Functions for Retrieving Date and Time