psdi.workflow

Class WFInstanceListener

  • java.lang.Object
    • psdi.workflow.WFInstanceListener
  • All Implemented Interfaces:
    EventListener


    public class WFInstanceListener
    extends java.lang.Object
    implements EventListener
    for issue 74974 - need to clear EventResponses created by the instance when it is deactivated. Need to do this after actions are complete because ER might have been created/destroyed since the last save and if we try to delete in the same transaction we'll get a rowupdate error.

    EventResponses created by the workflow are of two types. Actions may register responders, usually to prevent status changes. Wait nodes also register responders. To clear both types of responders, we delete all responders whose ref is set to this instance. Custom Actions which register responders should set the ref Mbo to the instance so they can be cleaned up correctly when the instance completes or is killed.

    Created static listener class - issue 07-14085.