PHP Class ezcWorkflowNodeMerge, Workflow

Inheritance: extends ezcWorkflowNode
Show file Open project: zetacomponents/workflow Class Usage Examples

Protected Properties

Property Type Description
$maxInNodes integer Constraint: The maximum number of incoming nodes this node has to have to be valid.
$minInNodes integer Constraint: The minimum number of incoming nodes this node has to have to be valid.
$state array The state of this node.

Public Methods

Method Description
initState ( ) Initializes the state of this node.

Protected Methods

Method Description
doMerge ( ezcWorkflowExecution $execution ) : boolean Performs the merge by ending the incoming threads and activating the outgoing node.
prepareActivate ( ezcWorkflowExecution $execution, integer $threadId ) Prepares this node for activation.

Method Details

doMerge() protected method

Performs the merge by ending the incoming threads and activating the outgoing node.
protected doMerge ( ezcWorkflowExecution $execution ) : boolean
$execution ezcWorkflowExecution
return boolean true when the node finished execution, and false otherwise

initState() public method

Initializes the state of this node.
public initState ( )

prepareActivate() protected method

Prepares this node for activation.
protected prepareActivate ( ezcWorkflowExecution $execution, integer $threadId )
$execution ezcWorkflowExecution
$threadId integer

Property Details

$maxInNodes protected property

Constraint: The maximum number of incoming nodes this node has to have to be valid.
protected int $maxInNodes
return integer

$minInNodes protected property

Constraint: The minimum number of incoming nodes this node has to have to be valid.
protected int $minInNodes
return integer

$state protected property

The state of this node.
protected array $state
return array