|
|
@@ -63,6 +63,7 @@ registered_metamodels = {}
|
|
|
outputs = {}
|
|
|
ctrl_input = None
|
|
|
ctrl_output = None
|
|
|
+finish_output_thread = False
|
|
|
|
|
|
def _output_thread(controller, outp, task):
|
|
|
req_out = controller.addOutputListener("request_out")
|
|
|
@@ -75,6 +76,8 @@ def _output_thread(controller, outp, task):
|
|
|
|
|
|
if event.parameters[1] == my_id:
|
|
|
outp[task].append(json.loads(event.parameters[0]))
|
|
|
+ if finish_output_thread:
|
|
|
+ break
|
|
|
except:
|
|
|
raise
|
|
|
|
|
|
@@ -528,6 +531,11 @@ def transformation_execute_AL(operation_name, input_models_dict, output_models_d
|
|
|
mv_dict_rep = _dict_to_list(input_models_dict) + [""] + _dict_to_list(output_models_dict) + [""]
|
|
|
|
|
|
_input(["transformation_execute", operation_name] + mv_dict_rep + [tracability_model])
|
|
|
+
|
|
|
+ if fetch_output == False:
|
|
|
+ global finish_output_thread
|
|
|
+ finish_output_thread = True
|
|
|
+
|
|
|
_handle_output("Success: ready for AL execution")
|
|
|
|
|
|
if statechart is not None:
|
|
|
@@ -585,6 +593,11 @@ def transformation_execute_MT(operation_name, input_models_dict, output_models_d
|
|
|
mv_dict_rep = _dict_to_list(input_models_dict) + [""] + _dict_to_list(output_models_dict) + [""]
|
|
|
|
|
|
_input(["transformation_execute", operation_name] + mv_dict_rep + [tracability_model])
|
|
|
+
|
|
|
+ if fetch_output == False:
|
|
|
+ global finish_output_thread
|
|
|
+ finish_output_thread = True
|
|
|
+
|
|
|
_handle_output("Success: ready for MT execution")
|
|
|
|
|
|
if statechart is not None:
|