* $workflow = new ezcWorkflow( 'Test' ); * // build up your workflow here... result in $node * $node = .... * $workflow->startNode->addOutNode( ....some other node here .. ); * $node->addOutNode( $workflow->endNode ); * * * @package Workflow * @version 1.1rc1 */ 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 * @ignore */ public function execute( ezcWorkflowExecution $execution ) { $execution->end( $this ); return parent::execute( $execution ); } } ?>