SAP / apibusinesshub-integration-recipes

Accelerate integration projects using SAP Cloud Platform Integration with crowdsourced best practices, curated by experts, designed for developers.
Apache License 2.0
112 stars 84 forks source link

How can we call a custom defined Camel Processor in the Integration Flow? #76

Open sunil-solace opened 1 year ago

sunil-solace commented 1 year ago

Discussed in https://github.com/SAP/apibusinesshub-integration-recipes/discussions/74

Originally posted by **sunil-solace** April 9, 2023 We have a custom Camel based Adapter being developed. It basically invokes the Producer and Consumer implementations we've defined using Receiver and Sender, but we also would like to invoke a custom Processor in our Adapter from the Integration Suite. Is this supported, if yes, then what's the way around it? Following is the example of what is being done: The following processor is implemented in the Custom Adapter: ``` public class MyCustomProcessor implements Processor { @Override public void process(Exchange exchange) throws Exception { //... } } ``` and this is how it would work in the Camel world: ``` ```