|
| | init () |
| |
| | isWorkflowLoaded ($workflowId) |
| |
| | loadWorkflow ($workflowId, $forceReload=false) |
| |
| | addWorkflow ($definition, $id) |
| |
| | getNodeDefinition ($node, $defaultWorkflowId=null) |
| |
| | getNextNodes ($sourceNode, $workflowId=null) |
| |
| | isNextNode ($sourceNode, $targetNode, $workflowId=null) |
| |
| | getInitialNode ($workflowId) |
| |
| | getAllNodes ($workflowId) |
| |
| | createSWNode ($node, $workflowId) |
| |
| | addWorkflow ($definition, $id) |
| |
| | loadWorkflow ($workflowId, $forceReload=false) |
| |
| | getNodeDefinition ($node, $defaultWorkflowId=null) |
| |
| | getNextNodes ($sourceNode, $workflowId=null) |
| |
| | isNextNode ($sourceNode, $targetNode, $workflowId=null) |
| |
| | getInitialNode ($workflowId) |
| |
| | getAllNodes ($workflowId) |
| |
This class gives access to workflow and statuses stored as PHP files. Following attributes can be initialized when the component is configured:
-
basePath (string) : the base path alias where all workflow are stored.By default, it is set to application.models.workflows (folder "protected/models/workflows").
-
definitionType (string) : Defines the type of PHP file to load. A Workflow can be defined in a PHP file that contains a simple array definition (definitionType = 'array'), or by a class (definitionType = 'class'). By default this attribute is set to 'array'.