AnsweredAssumed Answered

Process Instance migration by SetProcessDefinitionVersionCmd, new events not received.

Question asked by ilalaina on Nov 15, 2016
Latest reply on Feb 27, 2017 by gdharley
Hi all,

I needed to wrap my whole process instance inside a new subprocess to be able to reinitialize the request at any time by using a boundary signal event thrown programatically.

Then I migrated my process instances with this code :

processEngineConfiguration.getCommandExecutor().execute(new SetProcessDefinitionVersionCmd(processInstanceId, processDefinitionVersion));


The problem is that the signal event is not catched by the migrated processes because this query returns nothing, no execution has subscribed to the new event :

runtimeService.createExecutionQuery()
                      .processInstanceId(processInstanceId)
                      .signalEventSubscriptionName(signalName)
                      .list();


If I start new process instances directly upon the new process definition (no migration) the signalEventSubscriptionName method is working.

Could you help please?

Thanks.

Outcomes