Interface MigrateProcessInstanceCommandStep1

All Superinterfaces:
CommandWithCommunicationApiStep<MigrateProcessInstanceCommandStep1>
All Known Implementing Classes:
MigrateProcessInstanceCommandImpl

public interface MigrateProcessInstanceCommandStep1 extends CommandWithCommunicationApiStep<MigrateProcessInstanceCommandStep1>
  • Method Details

    • migrationPlan

      MigrateProcessInstanceCommandStep1.MigrateProcessInstanceCommandStep2 migrationPlan(long targetProcessDefinitionKey)
      Create a MigrationPlan GatewayOuterClass.MigrateProcessInstanceRequest.MigrationPlan for the given target process definition key.
      Parameters:
      targetProcessDefinitionKey - the key of the target process definition
      Returns:
      the builder for this command
    • migrationPlan

      Use the provided MigrationPlan from the given MigrationPlan object.

      Example MigrationPlan object creation:

       final MigrationPlan migrationPlan =
               MigrationPlan.newBuilder()
                   .withTargetProcessDefinitionKey(2L)
                   .addMappingInstruction("element1", "element2")
                   .addMappingInstruction("element3", "element4")
                   .build();
       
      Parameters:
      migrationPlan - the object that contains migration plan data
      Returns:
      the builder for this command