Workflow: ezcWorkflowNodeSubWorkflow
[ ]
[ ]
[ ]
[ ]
[ ]
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. $subWorkflow = new ezcWorkflowNodeSubWorkflow(
2. array(
3. 'workflow' => 'IncrementVariable',
4. 'variables' => array(
5. 'in' => array(
6. 'x' => 'y'
7. ),
8. 'out' => array(
9. 'y' => 'z'
10. )
11. )
12. )
13. );
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. |
|
public static void |
configurationFromXML(
$element )
Generate node configuration from XML representation. |
|
public void |
configurationToXML(
$element )
Generate XML representation of this node's 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
configurationFromXML
void configurationFromXML(
$element )
Generate node configuration from XML representation.
Parameters
| Name |
Type |
Description |
$element |
DOMElement |
|
Redefinition of
configurationToXML
void configurationToXML(
$element )
Generate XML representation of this node's configuration.
Parameters
| Name |
Type |
Description |
$element |
DOMElement |
|
Redefinition of
Last updated: Mon, 17 Dec 2007