Yentl Van Tendeloo 8 лет назад
Родитель
Сommit
5f29318a0b
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      wrappers/modelverse.py

+ 4 - 0
wrappers/modelverse.py

@@ -565,7 +565,9 @@ def transformation_execute_AL(operation_name, input_models_dict, output_models_d
     if statechart is not None:
         # We are to delegate this information to another statechart, which wants interaction
         # As such, we continue on a different thread, where we pipe the information, and let this call return immediately
+        mode = MODE_DIALOG
         _exec_on_statechart(statechart)
+        mode = MODE_MODELLING
         return None
     else:
         # No statechart associated, so just wait until we are finished
@@ -616,7 +618,9 @@ def transformation_execute_MT(operation_name, input_models_dict, output_models_d
     if statechart is not None:
         # We are to delegate this information to another statechart, which wants interaction
         # As such, we continue on a different thread, where we pipe the information, and let this call return immediately
+        mode = MODE_DIALOG
         _exec_on_statechart(statechart)
+        mode = MODE_MODELLING
         return None
     else:
         # No statechart associated, so just wait until we are finished