talonic_process_decide_change
Approve or turn down the change to a process that is waiting for approval, as the user. Only one of the process's approvers may answer, and never the person who asked for the change. Call talonic_process_publish_approval first, show the user changes and who asked, and call this only after the user said which. A rejection needs the user's reason. The answer counts for exactly the waiting content: an edit afterwards needs a new approval. Approving does not publish; talonic_process_publish does.
Availability
Listed when your workspace role has the Process Plane view permission. Changing, publishing and signing are checked again on every call against your role in the process.
Behaviour and cost
- Changes workspace data and can't be undone. Call it only when the user asked.
Parameters
| Parameter | Type | Description |
|---|---|---|
| process_id * | string | — |
| decision * | "approved" | "rejected" | The user's decision |
| reason | string | Why; required when the decision is rejected |
Example
// talonic_process_decide_change({ "process_id": "1111…", "decision": "approved" })
{ "required": true, "state": "approved", "decidedBy": "Quinn" }Errors
A failed call comes back as a tool error with the HTTP status and a message that says what to change. Troubleshooting lists the common ones.