Skip to content

Commit 62c6cc0

Browse files
authored
Update ProcessInstanceMigration.md (#4124)
1 parent e0c5377 commit 62c6cc0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/docusaurus/docs/bpmn/ch08-ProcessInstanceMigration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In this simple example we use the following use case:
2121

2222
To test if the process instance can be migrated without issues the following code can be used:
2323

24-
ProcessInstanceMigrationValidationResult validationResult = runtimeService.createProcessInstanceMigrationBuilder()
24+
ProcessInstanceMigrationValidationResult validationResult = processMigrationService.createProcessInstanceMigrationBuilder()
2525
.migrateToProcessDefinition(version2ProcessDef.getId())
2626
.validateMigration(processInstanceToMigrate.getId());
2727

@@ -30,9 +30,9 @@ To test if the process instance can be migrated without issues the following cod
3030
The process instance migration builder can be used to validate and, as we will see later on, migrate one or more process instances.
3131
In this case we test if the running process instance can be migrated to the new process definition version with 2 user tasks.
3232
Because the user task id didn’t change between the two process definition versions, the process instance can be migrated without any additional mapping configuration.
33-
Therefore the migration will have a migration valid boolean value of true. This means we can run the actual migration without to be expected issues.
33+
Therefore, the migration will have a migration valid boolean value of true. This means we can run the actual migration without to be expected issues.
3434

35-
ProcessInstanceMigrationValidationResult validationResult = runtimeService.createProcessInstanceMigrationBuilder()
35+
processMigrationService.createProcessInstanceMigrationBuilder()
3636
.migrateToProcessDefinition(version2ProcessDef.getId())
3737
.migrate(processInstanceToMigrate.getId());
3838

@@ -45,7 +45,7 @@ In the simple example user task 1 was automatically mapped to the same user task
4545
But in some cases the current activity of a running process instance doesn’t exist anymore in the new process definition, or the activity should be migrated to another activity for another reason.
4646
For this use case, the process instance migration builder allows you to specify a list of specific activity migration mappings.
4747

48-
ProcessInstanceMigrationValidationResult validationResult = runtimeService.createProcessInstanceMigrationBuilder()
48+
processMigrationService.createProcessInstanceMigrationBuilder()
4949
.migrateToProcessDefinition(version2ProcessDef.getId())
5050
.addActivityMigrationMapping("userTask1Id", "userTask2Id")
5151
.migrate(processInstanceToMigrate.getId());

0 commit comments

Comments
 (0)