cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti process in cluster

ambikakhatri
Champ in-the-making
Champ in-the-making
Hi,

When I call runtimeService.startProcessInstanceByKey(processName, processVariables), activiti process gets started identified by processName. Suppose I am in clustered environment and start process using above code. Will activiti process run in a different node? My requirement is that I want this process to be picked by any node and not necessarily the node where this code was executed. If not this way, how can I achieve this? Using message instead of processId (as below) getProcessEngine().getRuntimeService().startProcessInstanceByMessage('somemessage')
to start process would help me achieve this?

Thanks in advance,
Ambika
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Ambika,

- make the first task in the process asynchronous.
- let job executor on any node to pick up job and continue the execution.

Regards
Martin

Thanks Martin