Define Rules to Automatically Approve or Reject Workflow Tasks

You can configure a rule so that the workflow task is automatically approved or rejected without having to send it to any approver. These are the main things to do for your rule in the Then section:

  • Set up the routing so that the task gets assigned to the application (workflowsystem) or the submitter (Task.Workflow Submitter).

  • Select True for the Auto Action Enabled list.

  • Enter "APPROVE" or "REJECT" in the Auto Action field.

Here's an example of the Then section for a rule that's set up to automatically approve.

Field

Value

List Builder

Supervisory

Response Type

Required

Number of Levels

1

Starting Participant

HierarchyBuilder.getPrincipal("workflowsystem",-1,"","")

or

HierarchyBuilder.getPrincipal(Task.creator,-1,"","")

Auto Action Enabled

True

Auto Action

"APPROVE"

Rule Name

Example Approval

Dimension ID

null

For a rule that's set up to automatically reject, the only difference is that the Auto Action field has "REJECT" instead.