Adicion para filtrar events END

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-05-07 10:56:17 -04:00
parent 90f64d66cd
commit 23b292db04

View File

@@ -462,7 +462,10 @@ class BpmnWorkflow extends Project\Bpmn
$condition = array_key_exists('FLO_CONDITION', $gatewayFlow) ? $gatewayFlow["FLO_CONDITION"] : '';
if ($gatewayFlow['FLO_ELEMENT_DEST_TYPE'] == 'bpmnEvent') {
$this->wp->addRoute($activity["ACT_UID"], -1, $routeType, $condition);
$event = \BpmnEventPeer::retrieveByPK($gatewayFlow['FLO_ELEMENT_DEST']);
if ($event->getEvnType() == "END") {
$this->wp->addRoute($activity["ACT_UID"], -1, $routeType, $condition);
}
} else {
$this->wp->addRoute($activity["ACT_UID"], $gatewayFlow['FLO_ELEMENT_DEST'], $routeType, $condition);
}