talonic_process_publish
Make the draft the LIVE version. From then on the process runs for real: it starts on what its start says (arriving documents, mail, another system), sends its mail and calls its systems. Refused while talonic_process_check finds an error. Call only when the user said to publish; show them talonic_process_check first.
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 | — |
| reason | string | Why this change, for the record |
Example
Example
// talonic_process_publish({ "process_id": "1111…", "reason": "Second approver added" })
{ "version": 3, "changed": true }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 a publish be undone?+
talonic_process_rollback makes an earlier version live again. What the new version already did (mail sent, systems called) stays done.