상속: extends ezcWorkflowNode
예제 #1
0
 /**
  * Activate this node.
  *
  * @param ezcWorkflowExecution $execution
  * @param ezcWorkflowNode $activatedFrom
  * @param int $threadId
  * @ignore
  */
 public function activate(ezcWorkflowExecution $execution, ezcWorkflowNode $activatedFrom = null, $threadId = 0)
 {
     $parentThreadId = $execution->getParentThreadId($threadId);
     if (empty($this->state['threads'])) {
         $this->state['threads'][] = $threadId;
         parent::activate($execution, $activatedFrom, $parentThreadId);
     }
 }
예제 #2
0
 /**
  * Executes this node.
  *
  * @param ezcWorkflowExecution $execution
  * @return boolean true when the node finished execution,
  *                 and false otherwise
  * @ignore
  */
 public function execute(ezcWorkflowExecution $execution)
 {
     $this->initState();
     return parent::execute($execution);
 }
예제 #3
0
 /**
  * Activate this node.
  *
  * @param ezcWorkflowExecution $execution
  * @param ezcWorkflowNode $activatedFrom
  * @param int $threadId
  * @ignore
  */
 public function activate(ezcWorkflowExecution $execution, ezcWorkflowNode $activatedFrom = null, $threadId = 0)
 {
     $this->prepareActivate($execution, $threadId);
     parent::activate($execution, $activatedFrom, $execution->getParentThreadId($threadId));
 }