camunda-community-hub / camunda-platform-7-camel

Community Extension to add Apache Camel support for Camunda Platform 7
Apache License 2.0
82 stars 57 forks source link

Better support for Apache Camel InOut exchange pattern (Request-Reply) #42

Closed NickTheArchitect closed 3 years ago

NickTheArchitect commented 6 years ago

The Request Reply pattern is documented at http://camel.apache.org/request-reply.html. Note the following discussion about InOut pattern and using the in or out message: http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html

Fix:

Result My test code now has a Camel flavor ServiceTask like this (note the exchangePattern and the resultVariable): `

SequenceFlow_1skhzx5 SequenceFlow_159wdtm ` And the Camel route (in Groovy) looks like this: void configure() { from('direct:camelTestRoute') .routeId('direct:camelTestRoute') .log('Entering route') .process { Exchange exchange -> def body = exchange.in.body as Map // Use the "out" body with the value we want to return to become a process variable exchange.out.body = "Hello ${body.person} (but groovier)" } }
CLAassistant commented 5 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

:x: Nick James
:x: NickTheArchitect


Nick James seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

berndruecker commented 3 years ago

Hey @NickTheArchitect - sorry - this got stuck. Do you agree to close it as it is outdated?