Interface IWorkflowSource
Interface for WorkflowSource components.
This interface defines basic methods aimed to provide status, workflow and transitions to the SimpleStatusBehavior.
Direct known implementers
Methods summary
public
|
#
getStatus( mixed $id, $model = null )
Returns the Status instance for a given status id. In case of unexpected error the implementation must return a WorkflowException. |
public
|
#
getAllStatuses( string $id )
Returns an array containing all Status instances belonging to the workflow whose id is passed as argument. |
public
|
#
getTransitions( mixed $statusId, $model = null )
Returns an array of transitions leaving the status whose id is passed as argument. |
public
|
#
getTransition( mixed $startId, mixed $endId, mixed $model = null )
Returns the transitions that leaves status $startId and reaches status $endId. |
public
|
#
getWorkflow( mixed $id )
Returns the workflow instance whose id is passed as argument. In case of unexpected error the implementation must return a WorkflowException. |