cancel
Showing results for 
Search instead for 
Did you mean: 

Camel Routes Reusability

dasilvai
Champ in-the-making
Champ in-the-making
Is it possible to implement a Camel route (using the Activiti-Camel module) that is not directly connected to a specific service task ID and a Process ID?

Let's say I have a Camel route that needs to be re-used across many different processes and many different service task IDs within each process. Is there any way I could accomplish that?

Many thanks in advance
2 REPLIES 2

smirzai
Champ on-the-rise
Champ on-the-rise
hi
As of now it is not possible, but it seems a valid point to me.
Maybe we can add a patemeter route, and when this parameter is set,  activiti tries to find the mentioned route instead of the usual name convension way of finding it.

dasilvai
Champ in-the-making
Champ in-the-making
Thanks smirzai, that would be a great feature, since many of the Camel routes might need to be re-used in other process definitions.

We ended up creating a generic service task that can be re-used across multiple processes definitions in combination with RabbitMQ topic exchanges/routing keys. The service task simply connects to a RabbitMQ exchange and sends it a payload consisting of form variables and process instance ID. After the service task is called, we have a "Receive Task" step defined in our flow, which gets completed using a micro-service/micro-ESB we host somewhere else, which listens to a RabbitMQ exchange and sends a "signal" back to an Activiti process instance receive task (via Activiti REST API) whenever we have a new message published in a specific exchange.

Anyway, thanks once again for your help