* startNode->addOutNode( ... some other node here ... ); * $node->addOutNode( $workflow->endNode ); * ?> * * * @package Workflow * @version 1.3.3 */ class ezcWorkflowNodeEnd extends ezcWorkflowNode { /** * Constraint: The minimum number of outgoing nodes this node has to have * to be valid. * * @var integer */ protected $minOutNodes = 0; /** * Constraint: The maximum number of outgoing nodes this node has to have * to be valid. * * @var integer */ protected $maxOutNodes = 0; /** * Ends the execution of this workflow. * * @param ezcWorkflowExecution $execution * @return boolean true when the node finished execution, * and false otherwise * @ignore */ public function execute( ezcWorkflowExecution $execution ) { $execution->end( $this ); return parent::execute( $execution ); } } ?>