|
@@ -1,7 +1,7 @@
|
|
|
"""
|
|
|
Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
|
|
|
|
|
|
-Date: Thu Nov 9 12:02:53 2017
|
|
|
+Date: Thu Nov 9 13:32:52 2017
|
|
|
|
|
|
Model author: Yentl Van Tendeloo
|
|
|
Model name: MvK Server
|
|
@@ -2630,7 +2630,6 @@ class Modelverse(RuntimeClassBase):
|
|
|
return self.expect_response_partial('Success: ', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_add_MT_send_metadata_0_exec(self, parameters):
|
|
|
- print("Operating on received")
|
|
|
self.raiseInternalEvent(Event("result", None, [[self.context, self.responses.pop(0).split(': ', 1)[1]]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_add_MT_send_metadata_0_guard(self, parameters):
|
|
@@ -2649,7 +2648,6 @@ class Modelverse(RuntimeClassBase):
|
|
|
return self.expect_response('Success')
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_add_AL_send_metadata_0_exec(self, parameters):
|
|
|
- print("Got model we are operating on!")
|
|
|
self.raiseInternalEvent(Event("result", None, [[self.context, self.responses.pop(0).split(': ', 1)[1]]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_add_AL_send_metadata_0_guard(self, parameters):
|
|
@@ -2668,7 +2666,6 @@ class Modelverse(RuntimeClassBase):
|
|
|
return self.expect_response('Success')
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_add_MANUAL_send_metadata_0_exec(self, parameters):
|
|
|
- print("Operating on received")
|
|
|
self.raiseInternalEvent(Event("result", None, [[self.context, self.responses.pop(0).split(': ', 1)[1]]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_add_MANUAL_send_metadata_0_guard(self, parameters):
|
|
@@ -2693,7 +2690,6 @@ class Modelverse(RuntimeClassBase):
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_send_operation_1_exec(self, parameters):
|
|
|
self.input_context = str(uuid.uuid4())
|
|
|
self.inputs[self.input_context] = []
|
|
|
- print("Got context")
|
|
|
self.raiseInternalEvent(Event("result", None, [['SC', self.parameters[0], self.input_context]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_send_operation_1_guard(self, parameters):
|
|
@@ -2701,21 +2697,18 @@ class Modelverse(RuntimeClassBase):
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_dialog_0_exec(self, parameters):
|
|
|
self.raiseInternalEvent(Event("result", None, [True if self.responses.pop(0) == 'Success' else False]))
|
|
|
- print("GOT SUCCESS/FALSE")
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_dialog_0_guard(self, parameters):
|
|
|
return self.expect_response('Success', pop=False) or self.expect_response('Failure', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_dialog_1_exec(self, parameters):
|
|
|
self.raiseInternalEvent(Event("data_output", None, [self.responses.pop(0)]))
|
|
|
- print("Got data_output")
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_dialog_1_guard(self, parameters):
|
|
|
return not (self.expect_response('Success', pop=False) or self.expect_response('Failure', pop=False)) and self.expect_response_partial('', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_dialog_2_exec(self, parameters):
|
|
|
self.raiseInternalEvent(Event("request", None, [self.inputs[self.input_context].pop(0)['parameters']]))
|
|
|
- print("Got data_input")
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_dialog_2_guard(self, parameters):
|
|
|
return self.expect_input(self.input_context, 'data_input')
|
|
@@ -2725,7 +2718,6 @@ class Modelverse(RuntimeClassBase):
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_edit_model_1_exec(self, parameters):
|
|
|
model = self.responses.pop(0).split(": ", 1)[1]
|
|
|
- print("Operating on model " + str(model))
|
|
|
self.raiseInternalEvent(Event("result", None, [['OP', self.parameters[0], self.context, model]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_store_on_scripted_transformation_execute_edit_model_1_guard(self, parameters):
|