One operation, and the state machine decides
A workflow entity changes only through events. Every event of every workflow goes through the same PATCH /{entity}/{id}/{event}; the states XML says which events are allowed where, what each one needs and which code runs, and the response tells the client what it can do next.
Exchange
Payload
The flow is data
States, events, allowed transitions, their acls and their metadata live in the states XML. Adding an event is a line in the XML and, if it needs logic, one transition action; the controller and the service do not change.
Code is found by name
The XML names no classes. The transition action for an event is the bean named after the workflow and the event (issueResolveAction); automatic states and post-save hooks are found the same way, and a tenant's own bean wins over the base one.
The client is told what is next
Every response carries allowedActionsAndMetadata: the events allowed from the new state, already filtered by security, with each transition's metadata. User interfaces build their buttons from it.