Skip to content

Instantly share code, notes, and snippets.

@tijsrademakers
Created January 9, 2020 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tijsrademakers/2bc8b34411976d996242ec6e03a1f9bc to your computer and use it in GitHub Desktop.
Save tijsrademakers/2bc8b34411976d996242ec6e03a1f9bc to your computer and use it in GitHub Desktop.
processMigrationService.createProcessInstanceMigrationBuilder()
.migrateToProcessDefinition(version2ProcessDef.getId())
.addActivityMigrationMapping(
ActivityMigrationMapping.createMappingFor("userTask2Id", "subScriptTask")
.withLocalVariable("subprocessVariable", "passedValue"))
.migrate(processInstanceToMigrate.getId());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment