BPM, Workflow, and Case

 View Only
Expand all | Collapse all

How to migrate process instances with a completed state source to target snapshot.

  • 1.  How to migrate process instances with a completed state source to target snapshot.

    Posted Tue August 16, 2022 03:26 AM
    I just need to know how to migrate process instances that are in a completed state previous snapshot to a new snapshot since we are encountering some problems when we create the reports with exposed variables. These exposed variables only show process instances that are in the current snapshot and it doesn't display the previous snapshot's process instances, because those are not migrated to new snapshot.

    ------------------------------
    Harsha Randunna
    ------------------------------


  • 2.  RE: How to migrate process instances with a completed state source to target snapshot.

    IBM Champion
    Posted Tue August 16, 2022 11:25 AM
    Edited by Atanu Roy Tue August 16, 2022 11:53 AM
    Hi Harsha,

    Officially, only Active, Failed and Suspended instances can be migrated, Completed instances cannot be migrated. 
    But there is a crude way (I have done it once) - you need to change the Completed status as Suspended to make those eligible for migration.
    Through APIs, you cannot change the status of an instance, so you need to directly change in the database and the sample SQL would look like - 

    update LSW_BPD_INSTANCE set EXECUTION_STATUS = 6 where BPD_INSTANCE_ID = ?

    Once the migration is done, set the status back to 2 (Completed).

    Please note: This approach is definitely not recommended and if anything is broken, IBM won't provide support, do try it at your own risk and do not forget to take an offline DB backup before doing this experiment.

    Thanks!


    ------------------------------
    Atanu Roy
    Solution Architect
    Salient Process
    ------------------------------



  • 3.  RE: How to migrate process instances with a completed state source to target snapshot.

    Posted Thu August 25, 2022 05:54 AM
    Dear Atanu,

    Thanks for the prompt response.

    Thanks,
    Harsha Randunna

    ------------------------------
    Harsha Randunna
    ------------------------------