Skip to main content



      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 01:18 Go to next message
Eclipse UserFriend
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 02:55 Go to previous message
Eclipse UserFriend
Please look at https://www.eclipse.org/atl/support/ for a more suitable place/way to post questions about ATL.
Previous Topic:Content Assist not working
Next Topic:Screen resolution
Goto Forum:
  


Current Time: Sat Jul 12 06:59:59 EDT 2025

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

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

Back to the top