|
@@ -712,11 +712,7 @@ Void function enact_PM(pm : Element, prefix : String, user_id : String):
|
|
|
elif (type == "Finish"):
|
|
elif (type == "Finish"):
|
|
|
// Should be impossible, as we would have ended...
|
|
// Should be impossible, as we would have ended...
|
|
|
result = result
|
|
result = result
|
|
|
- elif (type == "Fork"):
|
|
|
|
|
- // Just fork, so we have multiple outgoing
|
|
|
|
|
- // Not a problem, as we already can do this with the usual code
|
|
|
|
|
- result = result
|
|
|
|
|
- elif (type == "Join"):
|
|
|
|
|
|
|
+ elif (type == "JoinFork"):
|
|
|
// Only do this if all dependencies are fullfilled
|
|
// Only do this if all dependencies are fullfilled
|
|
|
// So add to the counter of this Join
|
|
// So add to the counter of this Join
|
|
|
dict_overwrite(counters, element, integer_addition(counters[element], 1))
|
|
dict_overwrite(counters, element, integer_addition(counters[element], 1))
|
|
@@ -748,6 +744,10 @@ Void function enact_PM(pm : Element, prefix : String, user_id : String):
|
|
|
// Apparently it is False, so map this to the "Else" branch
|
|
// Apparently it is False, so map this to the "Else" branch
|
|
|
set_add(worklist, create_tuple(set_pop(allAssociationDestinations(pm, element, "Else")), True))
|
|
set_add(worklist, create_tuple(set_pop(allAssociationDestinations(pm, element, "Else")), True))
|
|
|
continue!
|
|
continue!
|
|
|
|
|
+ else:
|
|
|
|
|
+ // Apparently it is True, so map this to the "Then" branch
|
|
|
|
|
+ set_add(worklist, create_tuple(set_pop(allAssociationDestinations(pm, element, "Then")), True))
|
|
|
|
|
+ continue!
|
|
|
|
|
|
|
|
// We have finished the execution, so add all outgoing edges to the worklist
|
|
// We have finished the execution, so add all outgoing edges to the worklist
|
|
|
Element all_next
|
|
Element all_next
|