If Tab
Working with IF Workflows is slightly different. When defining them take the following into account:
General Information on IF Workflows
IF workflows process various tasks depending on the conditions that you have specified. The START object includes the conditions that are defined in its properties. After the START box, you see two parallel branches in which you can add any executable objects of your choice. These branches are referred to as True and False branches. It depends on the condition(s) that should be fulfilled whether the True or the False branch will be processed. Both branches lead to the END object.
The structure is predetermined and cannot be changed. This means that objects can only be added to the True and Else lines and are arranged in series. You cannot create new branches or draw individual lines. For this purpose, and if you need more complex structures, you must embed other workflows.
IF workflows can include any executable object except Schedules. They can also include other IF workflows.
However, you cannot use external dependencies within them.
The tasks of the branch that should run (True or False) will only be activated and processed when the conditions have been evaluated. The tasks of the other branch are not processed. They appear in white and obtain the status UNPROCESSED within the workflow. No activities are created and no RunID is assigned to the tasks that are not processed.
Defining Conditions
To define one or several conditions for an IF workflow, open the START object's properties and switch to the Conditions tab on the properties pane. This is a specific tab which is only available in the START object of IF workflows.
The Condition tab can be used to determine the branch (True or False) that should run plus the time at which it should run.
You can define various conditions and actions in this tab. They will be processed when the workflow starts before the subordinate tasks are processed. Conditions and actions can be inserted in other condition blocks which allows any nesting depth of your choice.
The Condition tab is similar to the Preconditions, Postconditions, Conditions tabs which are available in the properties of all workflow tasks. Different are the conditions, actions, the result and the affected tasks. For a detailed description on how to add conditions and actions and how to work with the Conditions Editor please see Preconditions, Postconditions, Conditions .
The final action RUN PATH ends the evaluation process and starts the True or False branch depending on what you have specified.
Note that the workflow will abort if the Condition tab does not include a final action.
You can even define actions that are not included in a condition which means that they will always be processed.
This tab execution process and the result are logged in the workflow activation report.
Actions
Name of the action | Description | Parameters | "Final" action |
---|---|---|---|
CANCEL PROCESS FLOW | Cancels the workflow. |
-) The workflow that should be canceled.
-) Also cancel workflow tasks? |
Yes |
CLEAR VARIABLE | Deletes the entry of a static Variable object |
-) The name of the Variable object -) Key |
No |
EXECUTE OBJECT |
Starts any object without checking its status. The UC_CAUSE - ReadBuffers are supplied with values and can be read in this object's script. |
-) Object name -) Alias (optional) Maximum length: 200 characters -) Parameter... (optional) -) Wait for the task's end? The workflow task's variables are always passed on to the started object. |
No |
RUN PATH |
Starts the tasks of the True or False branch. Ends the evaluation process of this tab's conditions and actions immediately and skips the tasks of the other branch. This action is only available in the properties of IF workflow START objects. |
-) True/False -) Alias |
Yes |
SET VALUE |
Defines an object variable or assigns a value to it. To use this object variable, you must have activated the option Generate at runtime (Post Process is exempted) regardless of the settings that are defined in the parameter scope of the task or the workflow. |
-) Variable name -) Value (optional) -) Scope: task or workflow. |
No |
SET VARIABLE | Enters the value in a static Variable object. Existing values are overwritten. |
-) The name of the Variable object -) Key -) Column -) Value |
No |
Conditions
Name of the condition | Description | Parameters |
---|---|---|
CHECK ACTIVITIES | Checks how often a task is available in the Tasks Window with a particular status or status area. |
-) Alias or object name. -) Corresponds to "greater", "less", "equal" or "not equal" -) Number of object executions -) Status
|
CHECK CONNECTION |
Checks whether a certain agent is available. In SAP and database agents you can also define a Connection object. This condition has the same function as the script element SYS_HOST_ALIVE. |
-) Agent -) Connection object (optional) |
CHECK FILE | Checks if a particular file exists. |
-) Agent Note that only the OS agent can check the file. -) Path and file name -) "Exists" or "Does not exist" |
CHECK HISTORY |
Checks if an object ended with a particular status in a particular time span. This condition cannot be used for the statistics of a previous Automation Engine version. |
-) Alias or object name. -) Status -) Days -) Time in the format HH:MM |
CHECK PROCESS |
Checks whether a particular process runs on a computer. This is only possible with Windows and UNIX platforms. |
-) Process: PID (process ID) or the name of the process. You can also specify a part of the process name with or without wildcard characters (*). The system searches within the process name even if you do not use a wildcard character within a string. -) Status -) Agent -) Login object |
CURRENT TIME | Checks if a particular time takes place before or after the current (physical) time, converted to the TimeZone that was used to start this task. |
-) "Before" or "After" -) Reference time in the format HH:MM |
USER DEFINED | Compares two values of your choice with each other. |
-) Value 1 (script literal, predefined variables) -) Operator: >, >=, =, <,<= or <> -) Value 2 (script literal, predefined variables) Only the predefined variables whose values are available at the time they are accessed will be resolved. Variables can be used for system, object and Variable object values. |