Hi Christian,
I have two metamodels, process metamodel and an E-R metamodel. The first
metamodel contains an EClass named "OExpression" with an EAttribute
named "model" that is set to be of type EString. Similarly the second
metamodel contains an EClass named "Entity" with an EAttribute "type"
that is also set to be of the same type EString.
Therefore the type (datatype) of the two attributes ("model" and "type")
is comparable since they are both set to EString.
The problem is that when evaluating the process model within its GMF
editor, I am trying to check its "model" attribute against the E-R
model's "type" attribute. But there is no reference or extension point
(like you said) to know which E-R model should be used to evaluate the
constraint. I loaded both models using there individual GMF editors to
try that but that was an unfortunate assumption:)
The constraint i am using is:
context OExpression
inv: cml::Entity.allInstances()->exists(e2 | self.model = e2.type)
Do you have any idea how I can refer to the E-R model when validating
the process model?
Thanks,
Achilleas