Adicion de flow entre gateway y un event

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-05-06 10:34:22 -04:00
parent e991a3f82a
commit 4868240250

View File

@@ -452,9 +452,10 @@ class BpmnWorkflow extends Project\Bpmn
}
$condition = array_key_exists('FLO_CONDITION', $gatewayFlow) ? $gatewayFlow["FLO_CONDITION"] : '';
$this->wp->addRoute($activity["ACT_UID"], $gatewayFlow['FLO_ELEMENT_DEST'], $routeType, $condition);
if ($gatewayFlow['FLO_ELEMENT_DEST_TYPE'] == 'bpmnEvent') {
$this->wp->addRoute($activity["ACT_UID"], -1, $routeType, $condition);
} else {
$this->wp->addRoute($activity["ACT_UID"], $gatewayFlow['FLO_ELEMENT_DEST'], $routeType, $condition);
}
break;
default: