Configuring error handling
When configuring a CRUD activity, you can use error handling to suppress errors encountered by that activity.
To configure error handling for a CRUD activity
- In the process diagram, right-click the name of the activity and click Properties.
- Go to the Error handling tab in the Properties dialog box, and select or clear the Continue workflow even if this activity encounters an error check box on that tab.
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 activity encounters an error condition.
Configuring “run-as” options
By default, CRUD activities are executed under the user account specified by the “run as” setting in the workflow options and start conditions. This could be the service account of the Active Roles Administration Service or the account of the user who caused the workflow to start. You can configure the activity to override the default “run as” setting.
To configure “run as” options for a CRUD activity
- In the process diagram, right-click the name of the activity and click Properties.
- Click the “Run as” options hyperlink at the bottom of the Properties dialog box.
- To override the default “run as” setting for this activity, select the Run this activity under check box, and then choose the account under which you want the activity to run:
- Click The service account of Active Roles if you want this activity to run under the service account of the Active Roles Administration Service.
- Click The account of the user who started the workflow if you want this activity to run under the account of the user who caused the workflow to start. Depending on the type of the workflow, this is either the user who requested the operation that started the workflow or the user who started the workflow on demand.
The account under which the activity is running determines the access rights of the activity in the directory.
- View or change the settings under the Approval enforcement option heading.
The Approval enforcement option settings determine whether to apply approval rules to the operation requested by the activity if the activity is executed under a privileged account, such as the Active Roles service account, an Active Roles Admin account, or the account of the user who is designated as an approver. The following settings are available:
- Inherit from the workflow options and start conditions Select this option if you want the activity to use the approval enforcement option selected in the workflow options and start conditions.
- Use the following option for this activity Click this option and then select or clear the Enforce approval check box if you want this activity to override the approval enforcement option selected in the workflow options and start conditions.
When selected, the Enforce approval check box causes the approval rules to be applied, submitting the operation for approval regardless of the account under which the activity is executed. Otherwise, the operation requested by the activity bypasses approval rules if the activity is executed under the Active Roles service account, an Active Roles Admin account, or the account of the user who is designated as an approver, so the operation is not submitted for approval.
Configuring additional settings
By using additional settings, you can override the default operation reason text, and add so-called request controls to modify behavior of the activity.
To configure additional settings for a CRUD activity
- In the process diagram, right-click the name of the activity and click Properties.
- Click the Additional settings link at the bottom of the Properties dialog box.
- In the Additional Settings dialog box, view or change the following options:
- Use this text instead of the original operation reason text. If the operation requested by the CRUD activity is subject to approval, you can specify the operation reason text to be shown to the approver instead of the reason text specified in the operation request that started the workflow.
- Select Use this text instead of the original operation reason text. check box and type the appropriate reason text to replace the original reason text. Select the Use only if the operation reason is not originally specified check box if you want the activity to use your reason text only if the operation request that started the workflow does not have any reason text specified.
- Allow the request created by this activity to start a new instance of the workflow containing this activity. This check box should normally be cleared to prevent recurrent execution of the activity in the situation where the operation requested by that activity within a given workflow matches the start conditions of that same workflow. Selecting this check box may result in a loop of workflow instances executing the same activity again and again, and eventually would cause an overflow condition.
- Exclude or include request controls from the activity operation request. Request controls are certain pieces of data in an operation request that can be used to pass additional information to Active Roles on how to process the request. Request controls are optional. For information about request controls, see Active Roles SDK.
To add or change a control, click Add or Change, and then, in the dialog box that opens, specify the name and, if applicable, the value of the control. If you want the activity to add the control to the requests, click Include this control in the activity operation requests. If you want to ensure that the control never occurs in the requests created by this activity, click Exclude this control from the activity operation requests.
Configuring a Save Object Properties activity
When you configure a Save Object Properties activity, you can specify the rules for selecting the object whose properties you want the activity to save, and list the properties for the activity to save. Additional options are available, such as notification and error handling.
To configure a Save Object Properties activity
- In the Active Roles console tree, expand Configuration | Policies | Workflow, and select the workflow containing the Save Object Properties activity you want to configure.
This opens the Workflow Designer window in the details pane, representing the workflow definition as a process diagram.
- In the process diagram, right-click the name of the activity and click Properties.
- Go to the Activity target tab in the “Save Object Properties” Activity Properties dialog box.
- Click in the Activity saves properties of this object box to specify the object whose properties you want the activity to save. This object is referred to as activity target. You can choose from the following options to specify the activity target:
- Workflow target object. In a change workflow, the activity target is the target object of the request that started the workflow. For example, in a workflow that starts upon a deletion request, this choice causes the activity to save the properties of the object whose deletion is requested.
- Fixed object in directory. The activity target is a particular object you select from Active Directory.
- Object identified by workflow parameter. The activity target is the object specified by the value of a certain parameter of the workflow. You can choose the desired parameter from the workflow definition.
- Object from workflow data context. The activity target will be selected by the activity on the basis of the data found in the workflow environment at the time of executing the workflow. You can specify which object you want the activity to select at workflow execution time.
- Object identified by DN-value rule expression. The Distinguished Name (DN) of the activity target is specified by the string value of a certain rule expression. By using a rule expression, you can compose a string value based on properties of various objects found in the workflow environment at the time of executing the workflow. You can create the desired rule expression when you configure the activity.
- Go to the Target properties tab in the “Save Object Properties” Activity Properties dialog box.
- Configure the list of the properties you want the activity to save:
- To add a property to the list, click Add, and then select the name of the desired property.
- To remove a property from the list, click the name of the property in the list, and then click Remove.
The Workflow Designer provides a default list of properties. You can remove all properties from the list by clicking Clear list or revert to the default list by clicking Restore default.
- Go to the Notification tab in the “Save Object Properties” Activity Properties dialog box to view or change notification settings. For instructions, see Configuring notification.
- Go to the Error handling tab in the “Save Object Properties” Activity Properties dialog box to view or change error handling settings. For instructions, see Configuring error handling.