Defining Self Approval rules
To define a Self Approval rule
- Complete the basic information about the rule if not done already; for more information, see Creating-a-rule.
- In the Rule Type field, select Self Approval from the list.
- Build a condition statement that tests for a specific field value to determine whether the rule passes. The condition can reference any value of the current approval request or any values retrieved by a Get Authority or Get Authority Self rule.
For example, test to see whether a signature authority field value is $100.00 and the total approval request amount is less than or equal to $100.00.
- (Optional) Enter an Audit Text message.
This message is written to the audit log when the condition for this rule passes. The audit text can include embedded field references that are filled when the rule condition passes. If you leave the Audit Text field blank, a default message is written to the audit log. - Click Save.
Example of a Self Approval rule
The following figure shows an example of a Self Approval rule from the Lunch Scheduler sample application. In this example, the rule condition is a statement comparing the value in the Estimated Total field of the approval request with the value in a temporary field (Temp Decimal 1) on the AP:Signature form, and the value 200.
For this Self Approval rule to work, a Get Authority Self or a Get Authority rule must also be included in the process to retrieve the value for the temporary field. In this example, the temporary field value is a signature authority value pulled from the AP-Sample:Signature Authority form by a Get Authority rule. The Estimated Total field is located on the approval request form (AP-Sample:Lunch Scheduler).
In addition to the rule condition, this sample rule includes a customized audit trail message to be written to the audit log when the rule passes.
Example of a Self Approval rule