Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [JET] Cross Model Association Lost
icon9.gif  [JET] Cross Model Association Lost [message #630077] Thu, 30 September 2010 11:07 Go to next message
Eclipse UserFriend
Hi,
I have 2 classes (A and B) and 2 models (X and Y). There is one class in each model (A in X and B in Y). Class B owns a directed composition relationship to Class A. This means A composes B but B actually owns the relationship. My model is UML2.

I am using Jet to transform Class A to Java. This code should contain an attribute representing the composition relationship to B. However, JET does not seem to realise this association exists as the classes are in different models and the relationship is from B to A. If I check the relationship using OCL in Eclipse or RSA by running self.getRelationships() on A I can see the relationships as expected. Using JET and an equivalent oclEvaluate($class,\"self.getRelationships()\") I do not get the relationship returned.

Any ideas?
Thanks,
Ronan

[Updated on: Thu, 30 September 2010 11:21] by Moderator

Re: [JET] Cross Model Association Lost [message #631490 is a reply to message #630077] Thu, 07 October 2010 13:05 Go to previous message
Eclipse UserFriend
Unfortunately this seems to be a JET issue that cannot be resolved directly. To get the transformation working I put links to the contents of models X and Y into a new model Z. X and Y are now UML2 model fragments akin to .efx models in IBM RSA. The transform works once this has been done.
Ronan
Previous Topic:<XPAND> collaboration diagram
Next Topic:[Acceleo] Use of template result in Sequence of String
Goto Forum:
  


Current Time: Tue Jul 22 17:45:44 EDT 2025

Powered by FUDForum. Page generated in 0.03386 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top