| [news.eclipse.modeling.gmf] Re: Problems with the Mapping model |
I can suggest you to modify meta-model to make it similar to the .ecorediagram attached. In this case you can create LinkMapping associated with Transition domain model element always having one source/target element tepresented by source/target meta-features in link mapping. In addition you can create LinkConstraints below this LinkMapping containing following source/target end constraints:
Source: not self.oclIsKindOf(FinalState) Target: not self.oclIsKinfOf(InitialState)
If you want to disable direct transitions from IitialState to Final one then:
Target: if self.oclIsKindOf(FinalState) then notoppositeEnd.oclIsKindOf(InitialState) else not self.oclIsKinfOf(InitialState) endif
/Linda & Anna