Validity keywords

The keywords available for the creation of workflow definitions are listed below. See the following sections for syntax and examples.

validfrom / validto

These keywords specify a time frame in which a workflow definition is valid.

Syntax

validfrom date

Arguments

validfrom date
The validfrom date defines the earliest moment in time from which workflow instances can be generated.
If a validfrom date is not defined within the run cycle, the default value is set to 2020/01/01.
validto
The validto date for a workflow is a read-only field. It is generated when a subsequent workflow version is created (with same folder, name, and workstation values but a later validfrom date). In this scenario, the validto date of the original workflow is set to the instant immediately preceding the validfrom date of the subsequent workflow version. The validto date specified in the run cycle is not included in the run cycle, so the workflow does not run on that date.

The validto date is shown when issuing list and display commands when MAESTROCOLUMNS is set to 120.

Comments

You can define different versions of the same workflow by creating other workflows with the same name and workstation, but with different validity intervals. The workflow identified as the dependency is the one that has a validity interval coincident with the period in which the dependency is active. When you define a workflow version, you must enter the validfrom date only.

Example

  • In the following example, the WORKFLOW1 workflow, which contains the TASK_1 task, is active from December 1, 2024.
    SCHEDULE WS_AGT_1#WORKFLOW1 VALIDFROM 12/01/2024 
    :
    WS_AGT_0#TASK_1
    
    END

draft

You can use this keyword to save the workflow as a draft so that it is not included in the plan generation process. If the workflow is referenced by dependencies, such workflow is not considered.

Syntax

draft

Comments

If you save as draft an existing task which has already been referenced, all the instances of that task do not run and the dependencies are realeased.

Example
In the following example, the WORKFLOW1 workflow is active from December 1, 2024, though it is marked as draft and thus it is not included in the plan. WORKFLOW1 contains the TASK_2 task.
SCHEDULE WS_AGT_1#WORKFLOW1 VALIDFROM 12/01/2024 
DRAFT
:
WS_AGT_0#TASK_2

END