Hi Camunda Experts,
I’m currently facing an issue with migrating process instances that include subprocesses in Camunda 8. Here are the details of the problem and the steps I took to reproduce it:
Problem Description:
I am trying to migrate process instances from one version of a BPMN diagram to another. However, I encountered an error when attempting to migrate instances that contain event subprocesses. The error message is as follows:
“Failed to migrate process instance: Command ‘MIGRATE’ rejected with code ‘INVALID_STATE’: Expected to migrate process instance but process instance has an event subprocess. Process instances with event subprocesses cannot be migrated yet.”
Environment Setup:
- Zeebe Client Version: 8.4.1
- Camunda Platform Version: 8.4
BPMN Diagram:
I have a BPMN diagram with the following structure:
A main process flow.
An event subprocess within the main process.
I used the newMigrateProcessInstanceCommand
method to attempt the migration
Question:
Is there a way to migrate process instances that include event subprocesses? If not, are there any recommended workarounds or upcoming updates that will address this issue?
Any guidance or suggestions on how to handle this migration would be greatly appreciated.
Thank you!