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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user