Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function createEventSubscriptions(VirtualExecution $execution, $activityId, Node $node = NULL)
 {
     parent::createEventSubscriptions($execution, $this->activityId, $node);
     foreach ($this->findAttachedBoundaryActivities($execution) as $node) {
         $behavior = $node->getBehavior();
         if ($behavior instanceof AbstractBoundaryActivity) {
             $behavior->createEventSubscriptions($execution, $this->activityId, $node);
         }
     }
 }
 /**
  * {@inheritdoc}
  */
 public function createEventSubscriptions(VirtualExecution $execution, $activityId, Node $node = NULL)
 {
     $execution->getEngine()->pushCommand(new CreateSignalSubscriptionCommand($this->signal, $execution, $activityId, $node === NULL ? $execution->getNode() : $node));
     parent::createEventSubscriptions($execution, $activityId, $node);
 }