Source: DIA Agency, Inc. ( Christian W. Damus)
The StateMachine metaclass’s redefinition of the "isRedefinitionContextValid(redefinedElement : RedefinableElement) : Boolean" operation is oddly over-constrained, requiring that the context classifier of a redefining state machine redefine the context classifier of the redefined state machine. It seems more plausible that this constraint should only require, or should also allow, that the context classifier of the redefining state machine be a specialization of the context classifier of the redefined state machine. Otherwise, state machine redefinition can only be valid for state machines that are owned behaviours of classifiers that are nested in other classifiers, because these context classifiers are required to have their own valid redefinition contexts.
That is to say, one might expect an OCL formulation more like this:
let redefinedStateMachine : StateMachine = redefinedElement.oclAsType(StateMachine) in
Reported: UML 2.5 — Wed, 8 Mar 2017 23:37 GMT
Updated: Thu, 9 Mar 2017 18:30 GMT