Manual Approvals workflow activity
Summarize
Summary of Manual Approvals workflow activity
The Manual Approvals workflow activity in ServiceNow monitors and manages manual approval requests added by users outside of an automated workflow process. It specifically targets approval records that are in the "Not requested" state on tables extending the Task table. This activity does not create approval records but waits for manual approvals to be completed before allowing the workflow to proceed. If no manual approvals are pending when the activity runs, it immediately completes with an "approved" result.
Show less
Key Features
- Manual Approval Monitoring: Watches for manual approvals added to a record and pauses the workflow until those approvals are resolved.
- Result Control: The workflow designer can set the activity's result value via scripting, with default results reflecting the final approval outcome (Approved, Rejected, Deleted, Cancelled, Error).
- Input Variables:
- Wait for: Defines approval completion criteria, such as any user approval, all users must approve, or the first response (approval or rejection) completes the activity.
- When anyone rejects: Determines if the activity ends immediately upon rejection or waits for other responses before deciding.
- Transition Conditions: Controls workflow progression based on whether approvals are granted or rejected according to specified rules.
- Activity States: The activity moves through states like Executing, Waiting, Finished, Cancelled, or Error to inform the workflow engine of its current status.
Practical Implications for ServiceNow Customers
This activity enables you to incorporate manual approvals into automated workflows effectively, ensuring workflows pause until required manual approvals are completed. It is particularly useful when approvals need to be added dynamically outside of the predefined workflow steps. Configuring the input variables allows you to tailor approval behavior to meet your organization's business rules about how approvals are collected and handled.
Understanding the activity states and result values helps you manage workflow logic and error handling effectively, ensuring smooth workflow execution and clear outcomes based on manual approval decisions.
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. |