HOR-1246: fix the recursive loop if there are 2 intermediate events or a gateway and an intermediate one forming a loop.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2016-06-09 11:09:40 -04:00
parent 617b66f2b1
commit 56c177492e

View File

@@ -1010,6 +1010,12 @@ class BpmnWorkflow extends Project\Bpmn
$routeType = "SEQUENTIAL";
$routeCondition = "";
$routeDefault = 0;
// The result value returns zero if the element is already mapped as a route
// we need to add this to fix cases of recursion if an already element has been mapped.
// like a loop for example.
if ($result === 0 ) {
return;
}
}
//Flows