Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » ATL Rule for Activity Diagram to Java Code Transformation(Transform the model instances to runnable Java code)
ATL Rule for Activity Diagram to Java Code Transformation [message #1774154] Wed, 11 October 2017 05:18 Go to next message
Nipuni Perera is currently offline Nipuni PereraFriend
Messages: 3
Registered: September 2017
Junior Member
I am trying to generate Java code from Activity Diagram. For this, I have built the meta models for both activity diagram and Java and conform the relevant models. I have also done the transformation rules using ATL to transform every activity diagram node to Java Statement.

I have written a query to write the Java instances to a text file, as shown below:
query J2C =Java!JavaStatement.allInstances().toString().writeTo('/ActivityDiagram2JavaCode/Metamodels/result');

After I run this query , the instances get written to the text file as shown below.
OrderedSet {IN!<unnamed>, IN!<unnamed>, IN!<unnamed>, IN!<unnamed>}

I want to convert these instances to corresponding Java runnable code.

Please advise

Thanks
Re: ATL Rule for Activity Diagram to Java Code Transformation [message #1774158 is a reply to message #1774154] Wed, 11 October 2017 06:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Please look at https://www.eclipse.org/atl/support/ for a more suitable place/way to post questions about ATL.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Content Assist not working
Next Topic:Screen resolution
Goto Forum:
  


Current Time: Thu Apr 25 04:43:50 GMT 2024

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

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

Back to the top