Manual Approvals workflow activity
Summarize
Summary of Manual Approvals workflow activity
The Manual Approvals activity facilitates the management of user-initiated approvals outside of the workflow process. It specifically targets approvals in the Not requested state and is applicable only when the workflow operates on a Task-extended table. If there are no pending approvals, the activity concludes immediately with a default result of approved.
Show less
Key Features
- Approval Management: This activity pauses the workflow until a manual approval is resolved.
- Result Assignment: The workflow designer can set result values such as Approved, Rejected, Deleted, Cancelled, or Error using activity.result.
- Input Variables: These define the activity's behavior, including conditions on user approvals and responses to rejections.
- Conditions: The conditions determine the transition after the activity based on user responses to approvals.
- Activity States: The states indicate the activity's status, such as Executing, Waiting, Finished, Cancelled, or Error.
Key Outcomes
By utilizing the Manual Approvals activity, ServiceNow customers can ensure that workflow processes effectively integrate user approvals, enabling precise control over workflow progression based on approval responses. This leads to enhanced workflow accuracy and responsiveness in managing approvals.
The Manual Approvals activity watches and manages any approvals that users add manually outside of the workflow process. This activity only selects approvals that are in the Not requested state.
If there are no pending manual approvals when this activity executes, the activity immediately completes with a result of approved. This activity does not create approval records. Use this activity to pause the workflow when a user adds a manual approval to a record with an associated workflow, and it is in the Not requested state. The workflow waits for the approval to be closed before proceeding.
Results
activity.result from
within a script field of the activity. By default, the result value of the activity is the
final approval disposition determined by the approval actions take by the approvers.
Possible result values are:- Approved
- Rejected
- Deleted
- Cancelled
- Error
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 anyone rejects | Indicate what happens when any user rejects their approval request. Options
are:
In addition, if Wait for is set to Anyone to approve then a single approval will cause the activity to complete with a result of approved even if one or more users reject. |
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. |