Class MigrateProcessInstanceCmd

  • All Implemented Interfaces:
    Command<java.lang.Void>

    public class MigrateProcessInstanceCmd
    extends AbstractMigrationCmd
    implements Command<java.lang.Void>
    How migration works:
    1. Validate migration instructions.
    2. Delete activity instances that are not going to be migrated, invoking execution listeners and io mappings. This is performed in a bottom-up fashion in the activity instance tree and ensures that the "upstream" tree is always consistent with respect to the old process definition.
    3. Migrate and create activity instances. Creation invokes execution listeners and io mappings. This is performed in a top-down fashion in the activity instance tree and ensures that the "upstream" tree is always consistent with respect to the new process definition.
    Author:
    Thorben Lindhauer