Skip to main content


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] Mon, 28 February 2011 01:55 Go to next message
No real name is currently offline No real nameFriend
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: Mon, 28 February 2011 01:56]

Report message to a moderator

Re: [Acceleo] Outsource Computation to Java [message #656711 is a reply to message #656660] Mon, 28 February 2011 08:47 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
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: Sat Apr 20 01:53:25 GMT 2024

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

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

Back to the top