Get visual documentation from camel routes in Java?
Asked Answered
O

1

7

I'm new to apache camel and made some routes working properly via Java DSL.

Now I'm wondering if there is a chance to get automatic a visual representation of these routes with JBoss Fuse?

I mean not by drawing it by hand again, more for automatic documention :-)

Edit: Since a downvote seems to be easier than a answer I try to rephrase my question a bit.
I'm looking for a possibility to reverse engineer my defined routes (Java) and get a picture with boxes out of it.

Hawtoi, what I tried before, gives a beautiful result but also a lot of other stuff I don't need for my documentation.
Therefore I took a look at JBoss Fuse. But here I can only draw my processes and save them as a blueprint.xml. Is the way from Java code to blueprint.xml not possible in JBoss Fuse? Do I miss something?

Obel answered 24/4, 2017 at 19:49 Comment(0)
V
5

The JBoss Camel Developer Tools for Eclipse can visualize Camel routes loaded from XML files. You can then save those diagrams etc for documentation purposes.

It does not yet work with Java routes, but they have talked about adding support for that in the future. Mind Java is harder as its Java code and end users can do a lot of other stuff than just regular Camel routing so parsing that to visual diagram is harder than XML.

https://tools.jboss.org/features/apachecamel.html

But at this moment of writing there is no tool to visualize Camel routes from Java DSL.

The Apache Camel IDEA plugin has a ticket to see if we can add route visualization for XML and Java in the future: https://github.com/camel-idea-plugin/camel-idea-plugin/issues/27

Verecund answered 25/4, 2017 at 7:33 Comment(3)
Added about Camel IDEA plugin in the answerVerecund
What about the camel-maven-plugin? camel.apache.org/camel-maven-plugin.htmlAshbaugh
the link is downRedemption

© 2022 - 2024 — McMap. All rights reserved.