Creating a rule
The buttons on the Rule tab provide the following actions:
- View—Opens the AP:Rule Definition form for the selected rule in Modify mode. You must select a rule from the list to use this option to view and modify existing rules.
- Search—Opens a blank AP:Rule Definition form in Search mode. Use this option if you want to search for a rule using a field that does not appear in the rules list.
- Create—Opens the AP:Rule Definition form in New mode. Use this option to create a new rule.
- Delete—Deletes the selected rule. You must select a rule from the list to use this option.
- Refresh—Refreshes the current list of rules. Use this option to refresh the list, for example, after adding a new rule.
- Show all—Refreshes the list of rules with all existing rules. Use this option to refresh the list after narrowing it to show only one type of rule.
To create a new rule
- Open the AP:Administration form.
- On the Rule tab, click Create.
The AP:Rule Definition form opens in New mode.
To create a rule, you must first create the process that the rule will support. For more information, see Defining-an-approval-process.
The AP:Rule Definition form consists of three tabbed views (depending on the type of rule):- Basic—The fields on this tab store identification and execution information about the rule, as well as a Run If qualification statement, if any.
- Set Fields—For rules that include a Set Fields action, the fields on this tab specify the action to be executed by the rule when a transaction passes the qualification statement. For more information, see Defining-actions-for-a-rule.
- Administrative Information—The fields on this tab contain change history and help text (if any) for the rule. Use the help text field to describe the purpose of the rule, or any other information helpful to process administrators.
- In the Rule Name field, enter a name for the rule.
Rule names must be unique and can be as long as 30 characters. For ease of administration, use a rule name that reflects the application or process, the rule type, the rule function, or some combination. - In the For Process field, select the process name that this rule will support from the list.
The processes that appear on this menu are those you have defined in the Process tab. When you select the process name, AR System automatically populates the Process Instance ID field. - In the Rule Type field, select the appropriate rule type from the list; for example, if you are creating a Get Next Approver rule, select Get Next Approver.
When you select a rule type, the Rule Definition form changes to display the fields appropriate for the rule type. Fields that apply to the rule type have a white field box. Fields that do not apply are gray. - In the Order field, enter an execution order number (the default is 0).
This number determines the rule sequence when two or more of the same rule type exist for a specific process. In the Status field, select either Active or Inactive (the default value is Active).
Inactive rules do not run when the process runs. While you are developing a set of rules for a process, it might be helpful to use the Inactive status. When you are ready to test your rules, change the Status field to Active.If you save a rule with the Status field empty, the rule is saved as Active.
- In the Assignee Group Permissions field, the Public group appears by default.
If you use this field for multitenancy support, create a workflow to populate this field with the correct assignee group name. You do not need to change this setting when creating the rule.
The Approval Server supports multitenancy for use by application service providers. The Assignee Group Permissions field is field 112 and appears on all the Approval Server forms. The field 112 value from records created in the AP:Details form is used automatically in all the other Approval Server forms, for example, AP:Signature, AP:More Information, and so on. - If the rule requires a qualifying condition to control execution, enter the condition in the Qualification area of the Basic tab.
This field is labeled "Rule" or "Run If," depending on the rule type. Process Done rules use a radio button field to set the execution condition.
You can type the condition statement or you can build it by using the qualification bar and list. When the qualification is met, the rule actions are executed. You can use currency, date, and time fields in Run If and Rule qualification statements.
For more information, see the Setting-up-users-access-and-preferences. For information about the If Multiple Results, If Multiple Approvers, and Next Approver Rule Is fields, see Defining-Get-Next-Approver-rules and Defining-Parameterized-Get-Next-Approver-rules - Click Save.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*