Hello, I`m new in camunda, i try to migrate my process instances to new version of process, but have a error
Cannot migrate activity instance 'Enrichment_Task_01z66ra:57a31607-623f-11ec-a60d-0a54769816b8':
The type of the source activity is not supported for activity instance migration
old process:
new process:
activity instance type is service task with delegate expression
Looks like this Behavior not support in SupportedActivityValidator.
How can i migrate my activities?
My migrate code:
MigrationPlan plan = runtimeService.createMigrationPlan(
"DLPI_MVP:1:0522773d-623b-11ec-8246-0a54769816b8",
"DLPI_MVP:2:e36b3b9b-623f-11ec-abbe-0a54769816b8"
)
.mapEqualActivities()
.build();
List<String> pi = runtimeService.createProcessInstanceQuery().activityIdIn("Enrichment_Task_01z66ra").active()
.list()
.stream().map(ProcessInstance::getId)
.collect(Collectors.toList());
runtimeService.newMigration(plan)
.processInstanceIds(pi)
.execute();
Thanks!