HOR-666
HOR-666:conflicts
This commit is contained in:
@@ -724,31 +724,31 @@ class Derivation
|
|||||||
$elementDestType
|
$elementDestType
|
||||||
);
|
);
|
||||||
|
|
||||||
if($elementDestUid == "-1" || count($arrayElement) == 0){
|
if($elementDestUid === '-1' || count($arrayElement) === 0 || $elementDestType === 'bpmnEvent'){
|
||||||
$arrayElement = $this->throwElementToEnd($elementOriginUid, $rouCondition);
|
$arrayElement = $this->throwElementToEnd($elementOriginUid, $rouCondition);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($arrayElement as $value) {
|
foreach ($arrayElement as $value) {
|
||||||
switch ($value[1]) {
|
switch ($value[1]) {
|
||||||
case "bpmnEvent":
|
case 'bpmnEvent':
|
||||||
if ($arrayEventExecute[$positionEventExecute]) {
|
if ($arrayEventExecute[$positionEventExecute]) {
|
||||||
$event = \BpmnEventPeer::retrieveByPK($value[0]);
|
$event = \BpmnEventPeer::retrieveByPK($value[0]);
|
||||||
|
|
||||||
if (!is_null($event)) {
|
if (!is_null($event)) {
|
||||||
if (preg_match("/^(?:END|INTERMEDIATE)$/", $event->getEvnType()) && $event->getEvnMarker() == "MESSAGETHROW") {
|
if (preg_match("/^(?:END|INTERMEDIATE)$/", $event->getEvnType()) && $event->getEvnMarker() === 'MESSAGETHROW') {
|
||||||
//Message-Application throw
|
//Message-Application throw
|
||||||
$result = $messageApplication->create($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
$result = $messageApplication->create($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match("/^(?:END|INTERMEDIATE)$/", $event->getEvnType()) && $event->getEvnMarker() == "EMAIL") {
|
if (preg_match("/^(?:END|INTERMEDIATE)$/", $event->getEvnType()) && $event->getEvnMarker() === 'EMAIL') {
|
||||||
//Email-Event throw
|
//Email-Event throw
|
||||||
$result = $emailEvent->sendEmail($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
$result = $emailEvent->sendEmail($arrayApplicationData["APP_UID"], $arrayApplicationData["PRO_UID"], $value[0], $arrayApplicationData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "bpmnGateway":
|
case 'bpmnGateway':
|
||||||
$positionEventExecute = "AFTER";
|
$positionEventExecute = 'AFTER';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user