* 1 ) ); * $step = new ezcWorkflowNodeVariableIncrement( 'i' ); * $break = new ezcWorkflowConditionVariable( 'i', new ezcWorkflowConditionIsEqual( 10 ) ); * $continue = new ezcWorkflowConditionVariable( 'i', new ezcWorkflowConditionIsLessThan( 10 ) ); * * $workflow->startNode->addOutNode( $set ); * * $loop = new ezcWorkflowNodeLoop; * $loop->addInNode( $set ); * $loop->addInNode( $step ); * * $loop->addConditionalOutNode( $continue, $step ); * $loop->addConditionalOutNode( $break, $workflow->endNode ); * ?> * * * @package Workflow * @version //autogen// */ class ezcWorkflowNodeLoop extends ezcWorkflowNodeConditionalBranch { /** * Constraint: The minimum number of incoming nodes this node has to have * to be valid. Set to false to disable this constraint. * * @var integer */ protected $minInNodes = 2; /** * Constraint: The maximum number of incoming nodes this node has to have * to be valid. Set to false to disable this constraint. * * @var integer */ protected $maxInNodes = false; /** * Constraint: The minimum number of outgoing nodes this node has to have * to be valid. Set to false to disable this constraint. * * @var integer */ protected $minOutNodes = 2; /** * Constraint: The maximum number of outgoing nodes this node has to have * to be valid. Set to false to disable this constraint. * * @var integer */ protected $maxOutNodes = false; /** * Whether or not to start a new thread for a branch. * * @var bool */ protected $startNewThreadForBranch = false; } ?>