Portal Community

Approval Task UI

Clicking an approval task in the list opens the full task detail view. Here is what an approval task looks like:

Expense Report Approval — Q1 Marketing

Workflow: Expense Approval Flow  |  Requested by: Sarah Chen  |  Due: 2026-05-27

Please review the Q1 Marketing expense report totaling $12,450 and approve or reject with a comment explaining your decision. Supporting documents are attached in the workflow context.


Your Comment (optional)

Approval Task Fields

UI ElementDescriptionRequired?
Task TitleSet by workflow designer in HIL node configAlways shown
Context DescriptionFree-text instruction for the approverOptional (depends on workflow)
Workflow Data PreviewKey fields from the workflow's data context (configured by designer)Optional
Supporting DocumentsLinks to documents attached to the workflow contextOptional
Comment FieldFree text — reason for decisionConfigurable (optional/required)
Approve ButtonSubmits decision: "approved"Always shown
Reject ButtonSubmits decision: "rejected"Always shown

Submitting an Approval Decision

// Submit approval decision
POST /api/executions/{executionId}/resume
Authorization: Bearer {token}
Content-Type: application/json

{
  "taskId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "response": {
    "type": "approval",
    "decision": "approved",           // "approved" | "rejected"
    "comment": "Budget looks reasonable for Q1.",
    "decidedAt": "2026-05-25T11:30:00Z"
  }
}

// Response: 200 OK
{
  "executionId": "7bc12d45-...",
  "status": "resumed",
  "taskId": "3fa85f64-...",
  "taskStatus": "completed"
}

What Happens After Approval

1

Response Submitted

WorkDesk POSTs to /resume. Task card shows a "Submitting..." spinner.

2

Process Engine Receives Response

The HIL node receives decision: "approved" as its output. The workflow branches based on the decision — approved path or rejected path.

3

Task Removed from Inbox

WorkDesk removes the task from the pending list. It appears in Completed Tasks with your decision recorded.

4

Workflow Completes or Continues

Downstream nodes execute based on the approval decision. If there are further HIL nodes, additional tasks may appear in the relevant actors' inboxes.

Multi-Party Approval

Some workflows require multiple approvals — all of a set of approvers must agree, or a majority must approve. Flow Studio's Multi-Party Approval node handles this. Each approver sees the task independently. WorkDesk shows a "N of M approved" progress indicator on multi-party tasks.

Comment Required for Rejection

Workflow designers can configure rejection to require a comment. If requireCommentOnReject: true, the Reject button is disabled until a comment is entered. This ensures an audit trail for all rejected decisions.