ATL Rule for Activity Diagram to Java Code Transformation [message #1774154] |
Wed, 11 October 2017 01:18  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.07870 seconds