KEY_ACTION
KEY_ACTION = 'action'
State machine system.
The Workflow component provides tools for managing a workflow or finite state machine.
transact(\Pluf_HTTP_Request $request, \Pluf_Model $object, string $action) : \Pluf\Workflow\Machine
Perform action on object
\Pluf_HTTP_Request | $request | |
\Pluf_Model | $object | |
string | $action |
apply(\Pluf_Model $object, string $action) : \Pluf\Workflow\Machine
Applies action on the object
\Pluf_Model | $object | |
string | $action |
None found |
can(\Pluf_Model $object, string $action) : boolean
Check if it is possible to perform action
\Pluf_Model | $object | |
string | $action |
true if it is possible to apply action.
None found |
None found |
setSignals(array $signals) : \Pluf\Workflow\Machine
Sets list of signals
array | $signals |
None found |
None found |
None found |
sendSignals(\Pluf_Model $object, string $action, Object $state, Object $transaction)
Send signals
\Pluf_Model | $object | |
string | $action | |
Object | $state | |
Object | $transaction |
None found |
None found |
None found |
checkPreconditions( $object, $action, $transaction)
$object | ||
$action | ||
$transaction |
None found |