Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4562

[ONE-OFF] (712.1) PIM tool allows to migrate process instances with different definitions from source migration plan

XMLWordPrintable

    • Icon: Support Patch Support Patch
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None

      PATCH NAME: RHPAM-4562
      PRODUCT NAME: Red Hat Process Automation Manager
      VERSION: 7.13.2
      DESCRIPTION: One-off patch for RHPAM-4562:

      1. Backup and remove the process migration service zip file:
      process-migration-service-7.59.0.Final-redhat-00009.zip

      2. Replace it with the patched zip file:
      process-migration-service-7.59.0.Final-redhat-00009-RHPAM-4562.zip

      ADDITIONAL INSTALL INSTRUCTIONS FOR ALL PLATFORMS:

      Find and replace the files

      process-migration-service-7.59.0.Final-redhat-00009.zip

      with the patched files:
      process-migration-service-7.59.0.Final-redhat-00009-RHPAM-4562.zip

      for all occurences of that file in your project.

      HOW EXECUTION CHANGES

      This patch can be verified with attached tester

      1. tester for PIM tool filtering on process instances
        1. Description

      This reproducer shows new feature to filter process attempted to be migrated.

      creates a kie server with two containers:

      • container1
      • human-task 1.0.0
      • other-human-task 1.0.0
      • container2
      • human-task 2.0.0

      Then migrate human-task from version 1.0.0 to 2.0.0

        1. Current behaviour

      All process instances are try for migration

        1. New behavious

      Only process matching with source definition are migrated

        1. Usage

      run in one terminal:

      • postgres:

      ./run-postgres

      • kie server:

      ./run-kieserver 7.12.1

      • old PIM tool

      ./run-pim-tool-original.sh

      • Execute scripts:
        $ ./create-process.sh

      create instances human-task.human-task in container container1

      created process instance: 1

      create instances human-task.other-human-task in container container1

      created process instance: 2

      create instances human-task.human-task in container container2

      created process instance: 3
      ```
      $ ./migrate.sh

      create migration plan

      plan 1 created

      running migration for 1

      running 1 migration

      show result for 1

      { "processInstanceId": 1, "status": true } { "processInstanceId": 2, "status": false } { "processInstanceId": 3, "status": false }

      ```

      • Stop old PIM tool and run new one:

      ./run-pim-tool-patched.sh

      • Execute scripts again:
        ```
        $ ./create-process.sh

      create instances human-task.human-task in container container1

      created process instance: 4

      create instances human-task.other-human-task in container container1

      created process instance: 5

      create instances human-task.human-task in container container2

      created process instance: 6
      $ ./migrate.sh

      create migration plan

      plan 1 created

      running migration for 1

      running 1 migration

      show result for 1

      { "processInstanceId": 4, "status": true }

      ```

      CREATOR:
      Alberto Fanjul
      DATE:
      24-Oct-2022

              afanjula@redhat.com Alberto Fanjul Alonso
              afanjula@redhat.com Alberto Fanjul Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: