|
@@ -1826,6 +1826,11 @@ class Modelverse(RuntimeClassBase):
|
|
|
_initialized_behaviour_operations_26.setTrigger(None)
|
|
|
_initialized_behaviour_operations_26.setGuard(self._initialized_behaviour_operations_26_guard)
|
|
|
self.states["/initialized/behaviour/operations"].addTransition(_initialized_behaviour_operations_26)
|
|
|
+ _initialized_behaviour_operations_27 = Transition(self, self.states["/initialized/behaviour/operations"], [self.states["/initialized/behaviour/wait_for_action/history"]])
|
|
|
+ _initialized_behaviour_operations_27.setAction(self._initialized_behaviour_operations_27_exec)
|
|
|
+ _initialized_behaviour_operations_27.setTrigger(None)
|
|
|
+ _initialized_behaviour_operations_27.setGuard(self._initialized_behaviour_operations_27_guard)
|
|
|
+ self.states["/initialized/behaviour/operations"].addTransition(_initialized_behaviour_operations_27)
|
|
|
|
|
|
# transition /initialized/behaviour/wait_for_action
|
|
|
_initialized_behaviour_wait_for_action_0 = Transition(self, self.states["/initialized/behaviour/wait_for_action"], [self.states["/initialized/behaviour/wait_for_action/history"]])
|
|
@@ -2327,41 +2332,47 @@ class Modelverse(RuntimeClassBase):
|
|
|
return self.expect_response_partial('User permission denied to: ', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_operations_21_exec(self, parameters):
|
|
|
- self.raiseInternalEvent(Event("exception", None, ['AdminPermissionDenied', 'Admin permissions are required for this operation!']))
|
|
|
+ self.raiseInternalEvent(Event("exception", None, ['UserNotInGroup', '']))
|
|
|
|
|
|
def _initialized_behaviour_operations_21_guard(self, parameters):
|
|
|
- return self.expect_response_partial('Admin permission denied', pop=True)
|
|
|
+ return self.expect_response_partial('User is not a member of the group!', pop=True)
|
|
|
|
|
|
def _initialized_behaviour_operations_22_exec(self, parameters):
|
|
|
- self.raiseInternalEvent(Event("exception", None, ['InterfaceMismatch', self.split_response(self.responses.pop(0))[0]]))
|
|
|
+ self.raiseInternalEvent(Event("exception", None, ['AdminPermissionDenied', 'Admin permissions are required for this operation!']))
|
|
|
|
|
|
def _initialized_behaviour_operations_22_guard(self, parameters):
|
|
|
- return self.expect_response_partial('Incorrect format: ', pop=False)
|
|
|
+ return self.expect_response_partial('Admin permission denied', pop=True)
|
|
|
|
|
|
def _initialized_behaviour_operations_23_exec(self, parameters):
|
|
|
- self.raiseInternalEvent(Event("exception", None, ['UnknownElement', self.split_response(self.responses.pop(0))[0]]))
|
|
|
+ self.raiseInternalEvent(Event("exception", None, ['InterfaceMismatch', self.split_response(self.responses.pop(0))[0]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_23_guard(self, parameters):
|
|
|
- return self.expect_response_partial('Element not found: ', pop=False)
|
|
|
+ return self.expect_response_partial('Incorrect format: ', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_operations_24_exec(self, parameters):
|
|
|
- self.raiseInternalEvent(Event("exception", None, ['UnknownModel', self.split_response(self.responses.pop(0))[0]]))
|
|
|
+ self.raiseInternalEvent(Event("exception", None, ['UnknownElement', self.split_response(self.responses.pop(0))[0]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_24_guard(self, parameters):
|
|
|
- return self.expect_response_partial('Model not found: ', pop=False)
|
|
|
+ return self.expect_response_partial('Element not found: ', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_operations_25_exec(self, parameters):
|
|
|
- self.raiseInternalEvent(Event("exception", None, ['UnknownMetamodellingHierarchy', 'Metamodelling hierarchy could not be resolved or automatically inferred: there is no typing relation between your specified model and metamodel (%s)' % self.responses.pop(0)]))
|
|
|
+ self.raiseInternalEvent(Event("exception", None, ['UnknownModel', self.split_response(self.responses.pop(0))[0]]))
|
|
|
|
|
|
def _initialized_behaviour_operations_25_guard(self, parameters):
|
|
|
- return self.expect_response_partial('Conformance hierarchy unknown for: ', pop=False)
|
|
|
+ return self.expect_response_partial('Model not found: ', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_operations_26_exec(self, parameters):
|
|
|
+ self.raiseInternalEvent(Event("exception", None, ['UnknownMetamodellingHierarchy', 'Metamodelling hierarchy could not be resolved or automatically inferred: there is no typing relation between your specified model and metamodel (%s)' % self.responses.pop(0)]))
|
|
|
+
|
|
|
+ def _initialized_behaviour_operations_26_guard(self, parameters):
|
|
|
+ return self.expect_response_partial('Conformance hierarchy unknown for: ', pop=False)
|
|
|
+
|
|
|
+ def _initialized_behaviour_operations_27_exec(self, parameters):
|
|
|
print("Unknown Error: " + self.responses[0])
|
|
|
pass
|
|
|
self.raiseInternalEvent(Event("exception", None, ['UnknownError', 'Error: %s' % self.responses.pop(0)]))
|
|
|
|
|
|
- def _initialized_behaviour_operations_26_guard(self, parameters):
|
|
|
+ def _initialized_behaviour_operations_27_guard(self, parameters):
|
|
|
return self.expect_response_partial('', pop=False)
|
|
|
|
|
|
def _initialized_behaviour_wait_for_action_0_exec(self, parameters):
|