Workflow: ezcWorkflowNodeSubWorkflow
[ ]
[ Theoretical background ]
[ ]
[ ]
[ ]
[ ]
Class: ezcWorkflowNodeSubWorkflow
|
An object of the ezcWorkflowNodeSubWorkflow class represents a sub-workflow. [
source]
When the node is reached during execution of the workflow, the specified sub-workflow is started. The original workflow is suspended until the sub-workflow has finished executing.
Incoming nodes: 1 Outgoing nodes: 1
The example below creates a sub-workflow node that passes the parent execution's variable 'x' to the variable 'y' in the child execution when the sub-workflow is started. When it ends, the child execution's 'y' variable is passed to the parent execution as 'z'.
1. <?php
2. $subWorkflow = new ezcWorkflowNodeSubWorkflow(
3. array(
4. 'workflow' => 'IncrementVariable',
5. 'variables' => array(
6. 'in' => array(
7. 'x' => 'y'
8. ),
9. 'out' => array(
10. 'y' => 'z'
11. )
12. )
13. )
14. );
15. ?>
Parents
ezcWorkflowNode
|
--ezcWorkflowNodeSubWorkflow
Inherited Constants
From
ezcWorkflowNode:
Member Variables
|
protected integer |
$state
= 0
Execution ID of the sub workflow, - if it has not been started yet.
|
Inherited Member Variables
From
ezcWorkflowNode:
Method Summary
|
public ezcWorkflowNodeSubWorkflow |
__construct(
$configuration )
Constructs a new sub workflow with the configuration $configuration. |
Inherited Methods
From
ezcWorkflowNode :
Methods
__construct
ezcWorkflowNodeSubWorkflow __construct(
mixed
$configuration )
Constructs a new sub workflow with the configuration $configuration.
Configuration format
- String:
The name of the workflow to execute. The workflow is loaded using the
loadByName method on the execution engine.
- Array:
- workflow: The name of the workflow to execute. The workflow
is loaded using the loadByName method on the execution engine.
- variables: An array with the information for mapping
workflow variables between parent and child workflow execution.
Parameters
| Name |
Type |
Description |
$configuration |
mixed |
|
Redefinition of
Last updated: Mon, 13 Oct 2008