- Camunda 7.6 Community
- Everything deployed through rest api.
Migration of the following BPMN:
- Activity B had active incidents.
- Activity B is a script that runs message correlation to another process definition using the java api.
The process was deployed through the rest API.
The above graph is message start events. Green is Version 1, and Yellow is Version 2. You can see the migration occur just after 10:00. before the migration, Version 2’s message start event was working. After migration, the Message start event stops working.
When you test the message start event using the Rest API’s /message
endpoint, a error such as:
org.camunda.commons.logging.BaseLogger.logError
ENGINE-16004 Exception while closing command context:
ENGINE-13031 Cannot correlate a message with name 'my_event' to a single execution.
105 executions match the correlation keys:
[
CorrelationSet[businessKey=null,
processInstanceId=null,
processDefinitionId=null,
correlationKeys=null,
tenantId=null,
isTenantIdSet=false
]
- Deploying again to bump the process version to 3 did not resolve the issue.
- I had to deploy a Version 3, Suspend Version 1 and Version 2 for Version 3 to start working again. Re-enabling the definition causes the issue to start again.
- It appears the problem specifically resolves when you suspend the migrated instances.
- It appeared that Version 2 was ignoring the Async after property on the Message Start Event.
- The migration between versions was just a generic by-default mapping. Rest API was used to Generate, Validate, and Execute the migration.
- There was no new activities, or changes to the activities. The migration’s purpose was just to move the active instances (which were some suspended instances on a timer, and instances that had incidents on the “B” Task.