Process Author: Removal of module with a Process running

Hi all.

Ok, this is the scenario:

  • Ent 7.7.
  • A custom module (Fix 1.0) is installed.
  • A process made in Process Author (Advanced Workflow) based on the Fix 1.0 module (all new records with status x is the criteria of the workflow, then each records has a waiting period of 3 months before actions xyz is done and the process terminated).
  • Fix 1.0 is uninstalled but tables not deleted.

The question: Will the processes continue to run for those records already in the process (i.e. the records that were already starting the waiting period and then actions xyz) despite module Fix 1.0 was uninstalled?

The idea is (if the nothing brakes in the above scenario) is then to install an updated version of the module (Fix 2.0) and make a new process for it that new records from then on would be processed by.

Thanks,

KGM

Parents
  • I am going to say no, as when you uninstall a module it is no longer part of the beanlist and without a bean the Process Author should be able to load any data to process.  At best nothing should happen, well maybe some errors in the log, and at worst process author should fail in a fatal error, which would be a bug.  I am not sure which scenario it is as I haven't tested this yet but I can say with confidence that no data will be processed.

Reply
  • I am going to say no, as when you uninstall a module it is no longer part of the beanlist and without a bean the Process Author should be able to load any data to process.  At best nothing should happen, well maybe some errors in the log, and at worst process author should fail in a fatal error, which would be a bug.  I am not sure which scenario it is as I haven't tested this yet but I can say with confidence that no data will be processed.

Children
  • Thanks Kenneth Brill  So basically, it is fatal (i.e. all processes will stop one way or another) to this scenario to uninstall the module while records are in the process - if I understand you correctly.

  • Kristjan,

    I tested this scenario and this is what I found:

    1. I created a custom module, then created a process definition for that custom module.

    2. I triggered the process definition and saw that there is a pending process in Admin > Process Management. 

    3. I  uninstalled the module without removing the tables and data.

    - I saw once the module was uninstalled that all processes for this custom module were removed from Admin > Process Management.

    4. I ran cron to hit the Admin > Schedulers to trigger the wait events for Process Author.

    5. I then reinstalled the custom module.

    - In Admin > Process Management, the process that previously was "In Process" now shows "Completed" but the action did not trigger.

    Based on this, it looks like the pending processes will not be triggered and will show as completed when the module is reinstalled.

    Hope this helps!

    Lori