Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Outsource Computation to Java(How to pass an activity structure to a Java service)
[Acceleo] Outsource Computation to Java [message #656660] Sun, 27 February 2011 20:55 Go to next message
No real name is currently offline No real name
Messages: 5
Registered: February 2011
Junior Member
Hi,

I am trying to generate code from a UML Activity Diagram in Acceleo. Since the control flow of the diagram can get very complicated, I was thinking about doing the necessary computations in Java, since it has the appropriate data structures for it and might therefore be more suitable.

Is there a way to pass a whole activity with all its nodes and edges to a Java service, so I can traverse the activity (i.e. access all its nodes and edges) in Java?

Thanks in advance,
Jay

[Updated on: Sun, 27 February 2011 20:56]

Report message to a moderator

Re: [Acceleo] Outsource Computation to Java [message #656711 is a reply to message #656660] Mon, 28 February 2011 03:47 Go to previous message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

I'm not particularly familiar with the metamodel of the Activity diagram in UML but if you are looking for the root of your model you can use ".ancestor()->last()" to obtain it.

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com



Previous Topic:[Acceleo 3] Protected Area
Next Topic:[JET] relating GMF to JET
Goto Forum:
  


Current Time: Wed Jul 30 19:24:31 EDT 2014

Powered by FUDForum. Page generated in 0.01853 seconds