When configuring a Script activity, you select the Script Module that contains the script to be used by the activity, and then, from the functions held in that script, you choose the function to be run by the activity and, optionally, the function that declares the activity parameters. If any parameters are declared, then you need to supply parameter values. For information and instructions on how to create a script for a Script activity, refer to Active Roles SDK.
To configure a Script activity
This opens the Workflow Designer window in the details pane, representing the workflow definition as a process diagram.
The list contains the names of all script functions found in the selected Script Module. The activity runs the function specified in the Function to run box.
The list contains the names of all script functions found in the selected Script Module. The activity has the parameters that are defined by the function specified in the Function to declare parameters box. Normally, this is a function named onInit.
Clicking Edit displays a page where you can add, remove or select a value or values for the selected parameter. For each parameter, the function that is used to declare parameters defines the name of the parameter and other characteristics, such as a description, a list of possible values, the default value, and whether a value is required. If a list of possible values is defined, then you can only select values from that list.
If this check box is not selected (default setting), then an error condition encountered by the activity causes Active Roles to terminate the workflow. If you select this check box, the workflow continues regardless of whether or not the activity encounters an error condition.
An If-Else activity is a composite activity. It is composed of several branches, each of which has individual conditions specified. An If-Else branch may contain any number of other activities. Every operation that satisfies the conditions specified on a given branch causes Active Roles to run the activities included in that branch. Only one branch of a single If-Else activity can be run even though an operation may satisfy the conditions on more than one branch.
Typically, an If-Else activity has two branches, with certain conditions specified on the first (leftmost) branch. The second branch has no conditions specified on it, so as to act as the “Else” branch. If an operation satisfies the conditions, the activities included in the first branch are run; otherwise, the operation flows through the activities found in the second branch.
Configuring an If-Else activity involves the following tasks:
To add a branch to an If-Else activity
This opens the Workflow Designer window in the details pane, representing the workflow definition as a process diagram.
This adds a branch with the default name of “If-Else Branch.” Right-click the name of the branch and click Properties to change the name as necessary. You can delete a branch by clicking the name of the branch and then clicking Delete.
To add an activity to an If-Else branch
If you add an activity to the upper part of the diagram (above the Operation execution line), the activity will be run in the pre-execution phase of operation processing (see Workflow processing overview earlier in this chapter).
If you add an activity to the lower part of the diagram (beneath the Operation execution line), the activity will be run in the post-execution phase of operation processing. Certain activities, such as an Approval activity, which are intended to run in the pre-execution phase, cannot be added to the lower part of the diagram.
You can delete an activity from a branch by clicking the name of the activity and then clicking Delete.
The following topic provides instructions on how to configure conditions for an If-Else branch: Configuring conditions for an If-Else branch.
When configuring an If-Else activity, you can configure error handling to suppress errors encountered by that If-Else activity and all activities included in that If-Else activity.
To configure error handling for an If-Else activity
If the Continue workflow even if this activity encounters an error check box is not selected (default setting), then an error condition encountered by the activity causes Active Roles to terminate the workflow. If you select this check box, the workflow continues regardless of whether or not the If-Else activity or any activity within the If-Else activity encounters an error condition.
An If-Else activity is intended to select exactly one branch of the activity from a given set of branches. For each branch, the activity checks the branch conditions and executes the first of the branches whose condition evaluates to TRUE.
The workflow designer provides a condition builder for configuring branch conditions, located in the If-Else Branch Activity Properties dialog box.
To access the condition builder for an If-Else branch
When you configure an If-Else branch, you need to add at least one condition. By default, a single, implied condition group is created when you add a branch condition. You can create additional condition groups to group a set of conditions and nest grouped conditions within other condition groups.
A condition group contains one or more conditions connected by the same logical operator. By grouping conditions, you specify that those conditions should be evaluated as a single unit. The effect is the same as if you put parentheses around an expression in a mathematical equation or logic statement.
To add a condition to a condition group
OR
Click the plus sign (+) next to the name of the condition group.
You can remove a condition, if needed, by clicking the Delete condition button labeled X on the right side of the list item representing the condition in the Conditions box.
To add a condition group into another condition group
By default, AND is the logical operator between the conditions in a condition group. It is possible to change the logical operator by converting the condition group to a different group type: Click the name of the group, point to Convert condition group to, and then click the option appropriate to the desired logical operator.
You can remove an entire condition group, if needed, by clicking the name of the group and then clicking Delete condition group.
Once you have added a condition to a condition group, you can use the following steps to configure the condition.
To configure a condition
The list of options that are available to specify a comparison value depends upon the entity or field you have configured the condition to evaluate. The following table summarizes the comparison value options.
Condition to evaluate |
Comparison value options |
Property of workflow target object - OR - Property of workflow initiator - OR - Changed value of workflow target object property - OR - Workflow parameter value - OR - Property of object from workflow data context - OR - Value generated by rule expression |
|
Activity execution status |
|
Approver action choice |
|
For a brief description of comparison operators and comparison value options, see Search filter.
© 2021 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy