[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] GMF mapping Audit Rules

Hi,

I will like to ask if it is possible to compare two attributes using one audit rule;one constraint.

For instance if i have the following metamodel

     Root (aggregates classes1,classes2)
Class1(includes EAttribute value1) Class2(includes EAttribute value2)

Usually when a constraint is written it will be of the form:

Domain Element Target: |Class1::EClass
Class1.allInstances()->forAll( c1, c2 | c1 <> c2 implies c1.value1 <> c2.value1 )



What if I want to compare the values of instances of the Class1 with instances of the Class2? Is there a way to define two Domain Element Targets? Could it be done directly from the Root class specifying this as the Domain Element Target?


Thanks,

Achilleas