PHP 클래스 ezcWorkflowNodeConditionalBranch, Workflow

Most implementations only need to set the conditions for proper functioning.
상속: extends ezcWorkflowNodeBranch
파일 보기 프로젝트 열기: zetacomponents/workflow

보호된 프로퍼티들

프로퍼티 타입 설명
$configuration The key is the position of the out node in the array of out nodes.
$maxActivatedConditionalOutNodes integer Constraint: The maximum number of conditional outgoing nodes this node may activate. Set to false to disable this constraint.
$minActivatedConditionalOutNodes integer Constraint: The minimum number of conditional outgoing nodes this node has to activate. Set to false to disable this constraint.
$minConditionalOutNodes integer Constraint: The minimum number of conditional outgoing nodes this node has to have. Set to false to disable this constraint.

공개 메소드들

메소드 설명
addConditionalOutNode ( ezcWorkflowCondition $condition, ezcWorkflowNode $outNode, ezcWorkflowNode $else = null ) : ezcWorkflowNode Adds the conditional outgoing node $outNode to this node with the condition $condition. Optionally, an $else node can be specified that is activated when the $condition evaluates to false.
execute ( ezcWorkflowExecution $execution ) : boolean Evaluates all the conditions, checks the constraints and activates any nodes that have passed through both checks and condition evaluation.
getCondition ( ezcWorkflowNode $node ) : ezcWorkflowCondition Returns the condition for a conditional outgoing node and false if the passed not is not a (unconditional) outgoing node of this node.
isElse ( ezcWorkflowNode $node ) : boolean Returns true when the $node belongs to an ELSE condition.
verify ( ) Checks this node's constraints.

메소드 상세

addConditionalOutNode() 공개 메소드

Adds the conditional outgoing node $outNode to this node with the condition $condition. Optionally, an $else node can be specified that is activated when the $condition evaluates to false.
public addConditionalOutNode ( ezcWorkflowCondition $condition, ezcWorkflowNode $outNode, ezcWorkflowNode $else = null ) : ezcWorkflowNode
$condition ezcWorkflowCondition
$outNode ezcWorkflowNode
$else ezcWorkflowNode
리턴 ezcWorkflowNode

execute() 공개 메소드

Evaluates all the conditions, checks the constraints and activates any nodes that have passed through both checks and condition evaluation.
public execute ( ezcWorkflowExecution $execution ) : boolean
$execution ezcWorkflowExecution
리턴 boolean true when the node finished execution, and false otherwise

getCondition() 공개 메소드

Returns the condition for a conditional outgoing node and false if the passed not is not a (unconditional) outgoing node of this node.
public getCondition ( ezcWorkflowNode $node ) : ezcWorkflowCondition
$node ezcWorkflowNode
리턴 ezcWorkflowCondition

isElse() 공개 메소드

Returns true when the $node belongs to an ELSE condition.
public isElse ( ezcWorkflowNode $node ) : boolean
$node ezcWorkflowNode
리턴 boolean

verify() 공개 메소드

Checks this node's constraints.
public verify ( )

프로퍼티 상세

$configuration 보호되어 있는 프로퍼티

The key is the position of the out node in the array of out nodes.
protected $configuration

$maxActivatedConditionalOutNodes 보호되어 있는 프로퍼티

Constraint: The maximum number of conditional outgoing nodes this node may activate. Set to false to disable this constraint.
protected int $maxActivatedConditionalOutNodes
리턴 integer

$minActivatedConditionalOutNodes 보호되어 있는 프로퍼티

Constraint: The minimum number of conditional outgoing nodes this node has to activate. Set to false to disable this constraint.
protected int $minActivatedConditionalOutNodes
리턴 integer

$minConditionalOutNodes 보호되어 있는 프로퍼티

Constraint: The minimum number of conditional outgoing nodes this node has to have. Set to false to disable this constraint.
protected int $minConditionalOutNodes
리턴 integer