Instance Migration

Hi, I have a little doubt about migrating instances to new processes.
I read in the camunda documentation that could be achieved from Cockpit in a migration window but I can’t find it

Hi @CRA,

the process instance migration in cockpit is only available in the enterprise edition: https://docs.camunda.org/manual/7.12/webapps/cockpit/bpmn/process-instance-migration/

But the Api is available in the Community Edition as well: https://docs.camunda.org/manual/7.12/reference/rest/migration/ and https://docs.camunda.org/manual/7.12/user-guide/process-engine/process-instance-migration/.

Hope this helps, Ingo

2 Likes

Hi @Ingo_Richtsmeier,

I checked the links but it is not clear to me the request body in this space:

“instructions”: [
{
“sourceActivityIds”: [“aUserTask”],
“targetActivityIds”: [“aUserTask”]
},
{
“sourceActivityIds”: [“anEvent”],
“targetActivityIds”: [“anotherEvent”],
}
]

Referred to by the sourceActivityIds and targetActivityIds fields, Are the new activities added?

Hi @CRA,

just a quote from the doc that I linked already:

The mapActivities invocations each specify a migration instruction and express that instances of the first activity should become instances of the second activity.

No, the process instance changes the internal references from the old activites to the new activities. Nothing is added.

Hope this helps, Ingo

1 Like