cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Integration with Apache Camel - Parameter Passing.

ssh1
Champ in-the-making
Champ in-the-making
Based on some of the blogs , I saw that Activiti can be integrated with Apache Camel for both 1) invoking process by camel and 2) invoking camel route from service task.

Is there a way to pass parameters in these invocations? For example : if apache camel invokes a process to manage orders in activiti and wants to pass the commodity name and value as parameters.
2 REPLIES 2

pmsriram13
Champ in-the-making
Champ in-the-making
ssh, that is my objective as well.. I have an XML string which i need to pass from an ActiveMQ queue to an Activity process , where i would do further processing. Have you been able to do so?
Thanks,
Sriram

trademak
Star Contributor
Star Contributor
Hi,

By default Camel passes the message body to the new process instance. You can also choose to pass along the message properties as the process variables.
The following line of code from the ExchangeUtils class in the Activiti Camel module shows this:

Map<?, ?> m = shouldReadFromProperties ? exchange.getProperties() : exchange.getIn().getBody(Map.class);
Best regards,