/** * Performs the merge by ending the incoming threads and * activating the outgoing node. * * @param ezcWorkflowExecution $execution * @return boolean true when the node finished execution, * and false otherwise */ protected function doMerge(ezcWorkflowExecution $execution) { foreach ($this->state['threads'] as $threadId) { $execution->endThread($threadId); } $this->activateNode($execution, $this->outNodes[0]); $this->initState(); return parent::execute($execution); }