cancel
Showing results for 
Search instead for 
Did you mean: 

Boundary message event subscriptions removed when deploying new version.

wblancqu
Champ in-the-making
Champ in-the-making
Scenario (version 6.0.0.Beta2) :

1. Create new workflow with boundary message event on specific user task.
2. Create process instance, and activate above task (so subscription to message event comes in)
3. Re-deploy new version of the workflow.
4. Send message event.

=> This results in the event subscription not being triggered due to following code being executed when re-deploying:
org.activiti.engine.impl.bpmn.deployer.BpmnDeploymentHelper

public void updateTimersAndEvents(ProcessDefinitionEntity processDefinition,
      ProcessDefinitionEntity previousProcessDefinition, ParsedDeployment parsedDeployment) {
    …
    eventSubscriptionManager.removeObsoleteMessageEventSubscriptions(previousProcessDefinition);
    …
}

I understand that this is normal behavior for start message events. However I'm not sure about boundary message events. In our use case it shouldn't. I was hesitating to file this as a bug report since I'm not sure if this is expected.

If this is expected, how can we work-around this issue?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Hmm I think you are correct: for boundary message events it doesn't make sense to remove them (for start events it does), as in-flight process instances would be lost.

Thanks for doing the research already and pointing usin the right direction.

I'll investigate (and hopefully fix) and post back here.

wblancqu
Champ in-the-making
Champ in-the-making
Hi Joram,

Any updates regarding this issue?

jbarrez
Star Contributor
Star Contributor
The plan is to release a new version next week (most likely). both for 5.x and 6.x line.