From Plant Uml to a structured object

0 votes
asked Mar 26, 2016 by milena.dyle (190 points)
I am trying to use plantuml as UI to draw models. Behind the scenes I need to process the model created with plantuml. I am using the java jar file to use the features of plantuml. My main concern is that I don't know whether there is any way, using the API, to extract a structure from the text file that I can use for further processing (like some xml)

Is there any thing from the API that could help me to solve this problem?

Thank you very much
commented Dec 13, 2016 by anonymous
This there a user guide to use the java jar file to apply the features of plantuml? I need to use the plantUML API to read and parse a file written in plantUML language (e.g., read and parse a sequence model written in plantUML language).

1 Answer

0 votes
answered Mar 29, 2016 by plantuml (134,510 points)
selected Mar 30, 2016 by milena.dyle
 
Best answer
The best option seems to be XMI export (see http://plantuml.com/xmi.html )

Would this fit your needs ?

Support for XMI is very limited right now, but we are willing to enhance it, only if anyone would use it.
commented Mar 30, 2016 by milena.dyle (190 points)
Please give me some minutes since I am still having the same output. Maybe I am referencing the wrong jar file.
commented Mar 30, 2016 by milena.dyle (190 points)
Thank you very much!
It's perfect! This time the problem was mine :)
Added the right jar and it works!

Thank you
commented Apr 12, 2016 by anonymous
Don't know if this makes sense, but you could output the state diagrams in the SCXML format, which I believe is a standard method for representing state diagrams in XML.
commented Apr 12, 2016 by plantuml (134,510 points)
Thanks for the idea! This makes 100% sense.

So we are going to add a SCXML export option (in addition to XMI).
Of course, this will work only for state diagrams. We'll post a message here when this will be ready.
commented Apr 19, 2016 by plantuml (134,510 points)
In last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
We have added -tscxml flag which allow the export to SCXML format for state diagram.
Some stuff may not be working, so do not hesitate to post messages here!
...