PHP Class ezcWorkflowNodeEnd, Workflow
A workflow must have at least one end node. The execution of the workflow ends
when an end node is reached.
Creating an object of the ezcWorkflow class automatically creates a default end node for the new
workflow. It can be accessed through the getEndNode() method.
Incoming nodes: 1
Outgoing nodes: 0
Example:
startNode->addOutNode( ... some other node here ... );
$node->addOutNode( $workflow->endNode );
?>
显示文件
Open project: zetacomponents/workflow
Protected Properties
Property |
Type |
Description |
|
$maxOutNodes |
integer |
Constraint: The maximum number of outgoing nodes this node has to have
to be valid. |
|
$minOutNodes |
integer |
Constraint: The minimum number of outgoing nodes this node has to have
to be valid. |
|
Public Methods
Method |
Description |
|
execute ( ezcWorkflowExecution $execution ) : boolean |
Ends the execution of this workflow. |
|
Method Details
Ends the execution of this workflow.
public execute ( ezcWorkflowExecution $execution ) : boolean |
$execution |
ezcWorkflowExecution |
|
return |
boolean |
true when the node finished execution,
and false otherwise |
Property Details
$maxOutNodes protected_oe property
Constraint: The maximum number of outgoing nodes this node has to have
to be valid.
protected int $maxOutNodes |
return |
integer |
|
$minOutNodes protected_oe property
Constraint: The minimum number of outgoing nodes this node has to have
to be valid.
protected int $minOutNodes |
return |
integer |
|