Example #1
0
 protected function parseEventBasedGateway($id, \DOMElement $el, BusinessProcessBuilder $builder)
 {
     $gateway = $builder->eventBasedGateway($id, $el->getAttribute('name'));
     $gateway->setAsyncBefore($this->getAsyncBefore($el));
     return $gateway;
 }
Example #2
0
 public function eventSubProcess($id, $attachedTo, BusinessProcessBuilder $subProcess, $name = NULL)
 {
     $subModel = $subProcess->build();
     $startNode = $this->findSubProcessStartNode($id, $subModel);
     $behavior = new EventSubProcessBehavior($id, $attachedTo, $startNode->getId());
     $behavior->setName($this->stringExp($name));
     $this->builder->node($id)->behavior($behavior);
     $this->append($subProcess);
     foreach ($subModel->findStartNodes() as $startNode) {
         $sb = $startNode->getBehavior();
         if ($sb instanceof StartEventBehaviorInterface) {
             $behavior->setInterrupting($sb->isInterrupting());
         }
     }
     return $behavior;
 }