Automation Engine Script Guide > Ordered by Function > Read or Modify Objects > GET_CONDITION

GET_CONDITION

Script Function: Determines earliest start times in workflows

Syntax

GET_CONDITION (Condition)

Syntax

Description/Format

Condition

Start condition to be determined
Format: script literal or script variable

Allowed values: "EARLIEST_START_TIME", "JOBP_EARLIEST_START_TIME"
"EARLIEST_START_TIME" = Earliest start time of a taskAn executable object that is running. Tasks are also referred to as activities. in the workflowAn object of the Automation Engine that can include several executable objects and which runs them in a specified order. [Formerly called "ProcessFlow" and "JobPlan."]
"JOBP_EARLIEST_START_TIME" = Earliest start time of workflow


Return code

Earliest start time of the task or workflow in the format "TT/HH:MM"

Comments

This scriptA particular Automation Engine object type. functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… only works within a workflow.

The earliest start time may be specified in the properties of tasks and in the START box of workflows. It can also be set at runtimeThe duration of a task's execution. It refers to the period between a task's start and end. It does not include its activation period (see also: activation and start). with the script statement :SET_CONDITION.

For determining the earliest start time, the following relations apply:

The earliest start time of the workflow is the point in time that has been defined in the START box of the workflow.

Example

In the following example, the script function is used in the script of a task that is running within a workflow. The earliest start time of the task and the workflow are queried and output in the activation protocol.

:SET &RETJOBS# = GET_CONDITION ("EARLIEST_START_TIME")
:
SET &RETJOBP# = GET_CONDITION ("JOBP_EARLIEST_START_TIME")
:
PRINT "Task's earliest start time:", &RETJOBS#
:
PRINT "Workflow's earliest start time:", &RETJOBP#

 

See also:

Script element Description

:SET_CONDITION

Sets earliest start times in workflows

Script Elements - Read or Modify Objects

About script
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function

 


Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support

Copyright © 2016 Automic Software GmbH