Customise Java DSL in Camel 4

2024-07-20 Thread Claude Mamo
Hello Camel community, Probably this has been asked before but couldn't find a good answer in the mailing lists nor Zulip. I'd like to tailor the Camel Java DSL for health information exchange. This means creating a no. of EIPs. For example: fromHie(...).transform(...).openMRS(...).transform(...)

Re: Customise Java DSL in Camel 4

2024-07-20 Thread Ivan Kulaga
Hello Claude! Please tell, have you considered writing custom components? Writing a new component is a somewhat common task, and there are many instruments and examples for that in camel ( https://camel.apache.org/manual/writing-components.html). With custom components, your camel route may look l

Re: Customise Java DSL in Camel 4

2024-07-20 Thread Claude Mamo
Yeah I had considered it but the functionality we want to provide would be more intuitive if it's part of the DSL. On the minus side, providing a custom DSL would make it harder for us to integrate with designers like Apache Karavan so that's for sure something we need to factor in. I should highli

Re: Customise Java DSL in Camel 4

2024-07-20 Thread Marat Gubaidullin
Hello Claude. To make it intuitive in Karavan you could make your custom Kamelets that incapsulate components/dsl configuration complexity. On Sat, Jul 20, 2024, 12:28 Claude Mamo wrote: > Yeah I had considered it but the functionality we want to provide would be > more intuitive if it's part o