MOFScript and UML State machines [message #494798] |
Mon, 02 November 2009 11:52  |
Eclipse User |
|
|
|
Hello,
I am using MOFScript to parse an UML model of a State Machine. I have been able to do it without major complications but for some reason I cannot access the "Trigger"s in the state transitions.
I can access other (I do not how to call them) elements in the transition such as "effect" and "guard". To get the Trigger I have tried many transformations without any success.
I am not sure if this is important but if in a transition I do a:
self.ownedElement.size()
I get only 2 (guard, effect) elements instead of 3 (guard, effect and trigger).
I am not UML savy, so probably I am doing a very silly mistake. Any ideas?
thanks,
Arturo S.
|
|
|
|
|
|
|
Re: MOFScript and UML State machines [message #580180 is a reply to message #495576] |
Fri, 06 November 2009 11:54  |
Eclipse User |
|
|
|
Hi,
Yes, it worked. It seems that I was doing something wrong when generating the diagram to UML2 (well, I think that was the reason) or in the previous version of my code.
Initially I tried the code you sent and it did not work. Then I did some changes in my translation script and in the diagram and it worked.
Thanks!
-as
|
|
|
Powered by
FUDForum. Page generated in 0.03961 seconds