Automatic Process Cleanup

Dear Team,

I would like to design a process model, which should get all the old process which are active beyond certain days, and then the user should be intimated for the amount of memory they are consuming because of their stale process, then they will approve it for auto cancelling.

I know we can add exception flows in process model to make it auto cancel, but my requirement is users to make decision on their old stale processes.

Please help me with some high level ideas on this.

Thanks in Advance.....

  Discussion posts and replies are publicly visible

Parents Reply Children
  • You could design along these lines:

    • each Process Model to have a "kill" switch - an Event Listener which does nothing more than transition to a terminate end node
    • a Process Report that finds all active process instances within the bounds of the criteria you want to apply (e.g. active for > 5 days)
    • a front end that exposes the list of Process Instances that the Process Report generates
    • a process model that you can call with the Process Instance Ids that the User selected from this front end that sends messages to the Process Instances that kills them