AnsweredAssumed Answered

Start activiti process through Java code

Question asked by ambikakhatri on Mar 19, 2016
Latest reply on Mar 25, 2016 by jbarrez
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

Outcomes