CAMEL-21975: Jbang diagram command to visualize camel routes#21534
CAMEL-21975: Jbang diagram command to visualize camel routes#21534vignesh-manel wants to merge 23 commits into
Conversation
ed37eef to
9e895ac
Compare
|
Thanks for helping with jbang. Can you make this into its own plugin as this should not be in the core. You can look at one of the existing pluigins such as the new validate |
orpiske
left a comment
There was a problem hiding this comment.
Nice idea, I'm but I'm under the impression this would be better done as a plugin. Let's see what others think about it ...
1f30326 to
3b606a9
Compare
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
|
@davsclaus @Croway @orpiske Refactored as plugin, please review |
|
Nice @vignesh-manel , were you able to test everything locally? can you provide some commands and outputs? |
|
there are changes to camel-launcher / camel-jbang run etc - that is of course a bit more worring since this plugin should not break existing behaviour. And what web browsers and OS does this work on ? Is it only google chrome ? |
1638a5c to
d444959
Compare
I tested with the jar locally using below command from camel-launcher directory, it requires a browser executable which is compatible with chromium java -jar target/camel-launcher-4.19.0-SNAPSHOT.jar diagram ../camel-jbang-core/src/test/resources/hello.yaml --output=hello.png --playwright-browser-path="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" if --output is not specified it will open the hawtio console, where the integration can be viewed |
I tried to simplify the changes, right now any chromium based browser is supported, I have tested it only in MacOS |
I think this information would be good to add to the documentation, with that little example so others better can understand how to use this feature |
16a9636 to
eb1343f
Compare
|
|
there is another approach for a diagram command just merged that does not rely on using web browsers, give that a try and look. |
|
closing this as we implemented this without using hawtio or the likes. There is a new camel-diagram component that renders and we have a jbang command for this as well. And more to come there. |


JIRA: CAMEL-21975
Description
Added Playwright-based PNG export for camel diagram via hawtio and Jolokia
Target
mainbranch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTestslocally from root folder and I have committed all auto-generated changes.