Await Review
Files a new item in the review inbox and pauses the workflow until a reviewer approves or rejects it. Route it to a person or a role, choose what happens when nobody answers in time, and read the decision from the output variable.
Category: Flow Control & Logic · Group: Flow Control · Activity name: AwaitReview
Example
outputVariable = AwaitReview("<entity>", payload={}, assignee="<assignee>", assigneeRole="owner", allowSelfApproval=False, timeoutMinutes=0, escalateAfterMinutes=1440, onTimeout="fail")
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| Subject | string | Yes | What the reviewer decides on, e.g. 'Payment #4711 (12,000 EUR)'. | |
| Context | object | Details shown to the reviewer. Map each to a value or {{ expression }}. | ||
| Assignee | string | User id or email of the person who must answer. Leave empty to let anyone in the organization answer. | ||
| Minimum role | string | When no assignee is set, only members with at least this role may answer. One of: owner, admin, member. | ||
| Allow self-approval | boolean | False | Let the person who started the run decide the item. Off by default, so a second person must decide. | |
| Timeout | integer | Sets the maximum time (in minutes) to wait for a decision. 0 or empty = wait until decided. | ||
| Escalate after | integer | 1440 | Minutes without a decision before the item is escalated and the assignee, admins and owners are emailed. | |
| On timeout | string | fail | What to do when the timeout passes without a decision. One of: fail, reject, approve. |
Outputs
| Name | Type | Description |
|---|---|---|
| outputVariable | object | Stores the decision: reviewItemId, decision (approved/rejected), reason, decidedBy. |