Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Acceleo: Get an Activity from Operation
Acceleo: Get an Activity from Operation [message #754341] Wed, 02 November 2011 09:20 Go to next message
Alejandro  is currently offline Alejandro Friend
Messages: 3
Registered: November 2011
Junior Member
I have a template in Acceleo that generates the structure of a java class, and now, i want to obtain the activity diagram associated with an operation. So, I have two templates:

[template public generateElement(class : Class)]
...
[for (o : Operation | class.ownedOperation) ]

//Here, I want to obtein the activity diagram associated with this operation
//and call generateFromActivity. But I don't know how do this.

...
[\template]

[template public generateFromActivity (a : Activity)]

...

[\template]

Thanks!
Re: Acceleo: Get an Activity from Operation [message #754354 is a reply to message #754341] Wed, 02 November 2011 09:58 Go to previous message
Alejandro  is currently offline Alejandro Friend
Messages: 3
Registered: November 2011
Junior Member
I have found the solution:

[for (a : Activity | o.method.oclAsType(Activity)) ]

[generateActivity(a)/]

[/for]
Previous Topic:missing org.eclipse.jet
Next Topic:Java wrapper doesn't work
Goto Forum:
  


Current Time: Sat Nov 29 07:55:59 GMT 2014

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

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