cancel
Showing results for 
Search instead for 
Did you mean: 

Process Instance migration by SetProcessDefinitionVersionCmd, new events not received.

ilalaina
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

I cant speak to the specific behavior of SetProcessDefinitionVersionCmd, but I do know that when a new version of a process is deployed, all current signal subscriptions to earlier versions of the process are removed.

Details in this thread:

 

Cheers,

Greg

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.