Migrate task and invoking springbean method

Hi. We have service for migrating task to other task inside one process.

	ActivityMigrationMapping mapping = new ActivityMigrationMapping.OneToOneMapping(fromTaskDefId, toTaskDefId);


	// Run task migration
	runtimeService.createProcessInstanceMigrationBuilder()
		.migrateToProcessDefinition(processDefinitionId).addActivityMigrationMapping(mapping)
		.migrate(processInstanceId);

But taskListener ${someSpringBean.doSomething(execution)}

is not executed. Are there some instructions to execute it?

Thanks

Do you mean that task listeners are not executed during migration?

If so, that’s indeed currently not supported and would need an additional setting during migration (as you often wouldn’t want this to trigger automatically during migration).