Approval Coordinator workflow activity
Summarize
Summary of Approval Coordinator Workflow Activity
The Approval Coordinator workflow activity in ServiceNow facilitates approval processes based on the outcomes of associated child activities, such as User, Group, and Manual Approvals. It is designed for workflows running on tables that extend Task. Users can create an Approval Coordinator by dragging it onto the workflow canvas and completing the required fields on the activity form.
Show less
Key Features
- Parent-Child Approval Logic: The activity aggregates results from multiple child approvals and completes based on specified conditions.
- Input Variables: Configure the activity's behavior using input variables like "Wait for" to determine how approvals are processed, including options to wait for any child approval or all child approvals.
- Rejection Handling: Options for managing rejections allow immediate completion or waiting for additional responses before making a decision.
- Approval Scripting: Custom scripts can be employed to define approval logic when the "Wait for" option is set to "Condition based on script."
- Activity States: The activity can be in states such as Executing, Waiting, Finished, Cancelled, or Error, each indicating its current operational status.
Key Outcomes
Upon completion, the Approval Coordinator sets all pending approvals related to its child activities to "No Longer Required." It provides several result values (Approved, Rejected, Deleted, Cancelled) based on the outcomes of the child activities. This functionality streamlines approval processes, ensuring that workflows respond quickly to user actions and maintain clarity throughout the approval lifecycle.
The Approval Coordinator activity creates an approval whose outcome depends on the outcome of one or more child activities, including one or more Approval - User, Approval - Group, and/or Manual Approval activities.
After you click Submit, the activity appears on the workflow canvas. From there, specify the child activities by clicking the links that appear on the body of the activity.
When the Approval Coordinator activity completes, all pending approvals that were created by any of the Approval Coordinator approval activities are immediately set to No Longer Required. If a single user is called as an approver twice by the same workflow, such as when a single user is both a product approver and an executive approver, any approvals for that user after the first are skipped.Results
- Approved
- Rejected
- Deleted
- Cancelled
Input variables
Input variables determine the initial behavior of the activity.
| Field | Description |
|---|---|
| Wait for | Indicate what to wait for to indicate that the approval activity is approved or
rejected. Options are:
|
| When a rejection occurs Only appears if Wait for is set to All child activities to be approved or Any child activity to be approved. |
Specify what the coordinator should do when it sees a rejection from any one of
the child activities. Options are:
|
| Approval script Only appears if Wait for is set to Condition based on script. |
If the Wait for variable is set to Condition
based on script this script is called to determine how to handle an
approval or rejection. The script needs to set the variable
answer to , approved or rejected to indicate the overall
approval status for this approval. When called, the following variable is available
to the
script: |
Conditions
| Condition | Description |
|---|---|
| Approved | The users from the groups have approved the request based on the Wait for rules. |
| Rejected | The users from the groups have rejected the request based on the Wait for rules. |
States
| State | Description |
|---|---|
| Executing | The workflow engine starts the execute function of the activity. |
| Waiting | The workflow engine ignores the activity until a specific event to restart the activity is fired. |
| Finished | The activity finished running. See the result value for the outcome of the activity. |
| Cancelled | This activity, or the workflow that contains this activity, was canceled. |
| Error | A JavaScript error occurred. Review the logs for error details. |