Merged in zeitmaster/processmaker/HOR-1246 (pull request #4379)

HOR-1246
This commit is contained in:
Julio Cesar Laura Avendaño
2016-06-09 18:12:39 -04:00

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