|
@@ -528,7 +528,6 @@ Void function enact_PM(pm : Element, prefix : String, user_id : String):
|
|
|
|
|
|
while (bool_not(pm_finished(worklist, pm))):
|
|
|
// Pop a random element from the list and execute it
|
|
|
- log("POP WL")
|
|
|
tuple = set_pop(worklist)
|
|
|
element = tuple[0]
|
|
|
result = tuple[1]
|
|
@@ -576,12 +575,10 @@ Void function enact_PM(pm : Element, prefix : String, user_id : String):
|
|
|
// in this context, that means that if it is false, we should add it manually to the list, and then continue the simulation loop
|
|
|
if (bool_not(result)):
|
|
|
// Apparently it is False, so map this to the "Else" branch
|
|
|
- log("POP ELSE")
|
|
|
set_add_node(worklist, create_tuple(set_pop(allAssociationDestinations(pm, element, "Else")), True))
|
|
|
continue!
|
|
|
else:
|
|
|
// Apparently it is True, so map this to the "Then" branch
|
|
|
- log("POP THEN")
|
|
|
set_add_node(worklist, create_tuple(set_pop(allAssociationDestinations(pm, element, "Then")), True))
|
|
|
continue!
|
|
|
|
|
@@ -590,7 +587,6 @@ Void function enact_PM(pm : Element, prefix : String, user_id : String):
|
|
|
all_next = allAssociationDestinations(pm, element, "Next")
|
|
|
String next
|
|
|
while (set_len(all_next) > 0):
|
|
|
- log("POP1")
|
|
|
next = set_pop(all_next)
|
|
|
set_add_node(worklist, create_tuple(next, result))
|
|
|
|
|
@@ -775,13 +771,10 @@ String function cmd_model_render(user_id : String, model_name : String, mapper_n
|
|
|
result = execute_operation(mapper_ID, inputs, tracability_model)
|
|
|
|
|
|
// Overwrite the previous rendered model
|
|
|
- log("Rendered model: " + cast_v2s(get_model_id(output_map["rendered"])))
|
|
|
model_overwrite(result["rendered"], get_model_id(rendered_name), get_model_id(output_map["rendered"]))
|
|
|
- log("Abstract model: " + cast_v2s(get_model_id(output_map["abstract"])))
|
|
|
model_overwrite(result["abstract"], get_model_id(model_name), get_model_id(output_map["abstract"]))
|
|
|
|
|
|
// Tracability updated in-place
|
|
|
- log("Tracability model: " + cast_v2s(get_model_id("Tracability")))
|
|
|
model_overwrite(tracability_model, get_model_id(tracability_name), get_model_id("Tracability"))
|
|
|
tracability_model = get_full_model(get_model_id(tracability_name), get_model_id("Tracability"))
|
|
|
|
|
@@ -880,7 +873,6 @@ String function cmd_transformation_execute(user_id : String, transformation_name
|
|
|
else:
|
|
|
output("Success: ready for MT execution")
|
|
|
|
|
|
- log("Start execution: " + cast_e2s(transformation_id))
|
|
|
result = execute_operation(transformation_id, inputs, read_root())
|
|
|
|
|
|
// Now write out the models again
|