示例#1
0
 /**
  * {@inheritdoc}
  */
 public function interrupt(VirtualExecution $execution, array $transitions = NULL)
 {
     foreach ($execution->findChildExecutions() as $sub) {
         $sub->terminate(false);
     }
     parent::interrupt($execution, $transitions);
 }
示例#2
0
 protected function dumpExecution(VirtualExecution $exec)
 {
     $node = $exec->getNode();
     $nodeId = $node === NULL ? NULL : $node->getId();
     printf("%s%s [ %s ]\n", str_repeat('  ', $exec->getExecutionDepth()), $nodeId, $exec->getId());
     foreach ($exec->findChildExecutions() as $child) {
         $this->dumpExecution($child);
     }
 }