talonic_process_sign
Sign a sign-off step of a run for the caller: approve all waiting items, or only items. A step that offers choices needs decision (one of its choices). Allowed only where the caller is assigned to the step. Signing moves real work on: call only when the user decides.
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
- Not read-only. It can add to or change workspace data.
Parameters
| Parameter | Type | Description |
|---|---|---|
| process_id * | string | — |
| run_id * | string | — |
| step_id * | string | The sign-off step's id (stepId from talonic_process_waiting_for_me) |
| items | string[] | Item keys; default every waiting item |
| decision | string | One of the step's choices, when it offers any |
Example
Example
// talonic_process_sign({ "process_id": "11111111-1111-4111-8111-111111111111", "run_id": "22222222-2222-4222-8222-222222222222", "step_id": "ok" })
{ "released": 2, "alreadySigned": 0 }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.
Frequently asked questions
Can it sign for someone else?+
No. It signs as the person behind the key, and only steps that person is assigned to.