protected function parseCallActivity($id, \DOMElement $el, BusinessProcessBuilder $builder) { $call = $builder->callActivity($id, $el->getAttribute('calledElement'), $el->getAttribute('name')); $call->setDocumentation($builder->stringExp($this->getDocumentation($el))); $call->setAsyncBefore($this->getAsyncBefore($el)); $call->setAsyncAfter($this->getAsyncAfter($el)); foreach ($this->xpath->query('m:extensionElements/i:in[@source]', $el) as $in) { $call->addInput($in->getAttribute('target'), $in->getAttribute('source')); } foreach ($this->xpath->query('m:extensionElements/i:in[@sourceExpression]', $el) as $in) { $call->addInput($in->getAttribute('target'), $builder->exp($in->getAttribute('sourceExpression'))); } foreach ($this->xpath->query('m:extensionElements/i:out[@source]', $el) as $out) { $call->addOutput($out->getAttribute('target'), $out->getAttribute('source')); } foreach ($this->xpath->query('m:extensionElements/i:out[@sourceExpression]', $el) as $out) { $call->addOutput($out->getAttribute('target'), $builder->exp($out->getAttribute('sourceExpression'))); } return $call; }