Configure automatic status change for approvals
You can configure Approvals to change status automatically according to the percentage of approvers who accept or reject the Approval.
In triggerswebplatform.xml, the EvaluateApprovalTrigger
trigger defines when an Approval changes from its original status (open
) to one of the final statuses (either approved
or rejected
).
In the trigger, you can set the validation
parameter to any number from 0 to 1. This number determines the percentage of approvers who must approve the Approval for the status to change to approved
. If this condition cannot be met, the status of the Approval automatically changes to rejected
.
Suppose you set validation
to 0.75. 75 percent of approvers must approve for the
Approval to change to approved
. If less than 75
percent approve, the Approval changes to rejected
.
It is not necessary for all assigned approvers to complete the approval to trigger
the automatic status change.
Configure automatic status change for approvals: