Skip to main content

Actions & Transitions

There are 11 actions that drive the transitions between states in the SPECS document lifecycle. Each action is restricted to a specific role (Executor or Manager) and may produce side effects.

Actions table

Action CodeRoleDescriptionFrom stateTo stateSide Effect
initialize👤 ExecutorStart drafting the document from a new ticketcreateddraft
delete👤 ExecutorDelete the ticket permanentlycreateddeletedHard delete — cannot be recovered
drafting👤 ExecutorMove the workflow back to the Draft staterejected, change, on_holddraftPasses the full request body to update the content
request-review👤 ExecutorSubmit a review requestdraftpending_review
cancel-review👤 ExecutorCancel a pending review requestpending_reviewdraft
start-review👑 ManagerStart the reviewpending_reviewin_review
approve👑 ManagerApprove the workflowin_reviewapprovedPublishes a businessUpdated event to the message broker
reject👑 ManagerRejectin_reviewrejected
on-hold👑 ManagerPause; do not continue processingin_review, pending_reviewon_hold
track-back👑 ManagerReturn to the previous statein_review, pending_review, on_holddraft
change👑 ManagerMark as needing changesin_review, approvedchange

Transitions diagram

Important rules

Permission Enforcement

When a Task Executor calls an action that belongs to a Task Manager (or vice versa), the system returns 403 Forbidden.