Similar to an If action within the task level, an Evaluation object essentially provides a means for logical branching to take place within the workflow level. It is a logic mechanism that allows for sophisticated decision making and intuitive pausing to take place within a workflow. The Evaluation object is used primarily in conjunction with a Result Arrow to evaluate whether a specific condition is TRUE or FALSE, results to YES or NO or matches a specific value and alters the path of the workflow depending on the results of the evaluation. For example, an Evaluation Object can be used in the middle of a workflow to determine if a specific process is running on the system. If the result of the evaluation is TRUE, the workflow will execute Task 1. If FALSE, the workflow will alter its course and execute Task 2 instead.
In addition, the Evaluation object supports functions, extended functions, AMError, AMCondition, shared variables, shared datasets, shared arrays and server constants, giving it the ability to evaluate a certain value or condition that resulted from a previous task, sub-workflow or condition.
From the Workflow Designer, drag the Evaluation Object icon from the Available Objects pane to the workspace.
Click the field directly below the newly added Evaluation object to enter a specific name for the object.
Double-click the object or right-click the object and select Edit. This will open the Evaluation object's properties dialog (shown below).
Select one of the following available options:
Simple - Specifies a simple expression. For example city = "Los Angeles" or count > 100.
Complex - Specifies the use of a complex expression
Value of this variable - Specifies the value of the specified variable. Commonly used to evaluate whether the value of a variable contained in a task that links to this object matches the value entered. Click the down arrow to select available variables. Note that the variable specified must be declared as a shared variable in order for it to be properly evaluated. Shared variables are variables that are accessible throughout an entire workflow. For more details, see Shared Variables.
Enter the appropriate information for the option selected.
Click OK to save changes and close the properties dialog.
About Workflows | Flow Control Arrows | Failure Arrow | Success Arrow | Result Arrow | Wait Object | Workflow Logic