/** * 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); } }
/** * 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); }
/** * 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)); }