public class WFInstanceListener extends java.lang.Object implements EventListener
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.
| Modifier and Type | Method and Description |
|---|---|
static void |
destroy()
Unregister this listener.
|
void |
eventAction(EventMessage em) |
boolean |
eventValidate(EventMessage em)
Only interested when instances become inactive.
|
static WFInstanceListener |
init()
Returns the listener object.
|
void |
postCommitEventAction(EventMessage em)
After the asset is written to the database, this method updates the ancestor records.
|
void |
preSaveEventAction(EventMessage em) |
public static WFInstanceListener init()
public boolean eventValidate(EventMessage em) throws MXException
eventValidate in interface EventListenerMXExceptionEventListener.eventValidate(psdi.server.event.EventMessage)public void preSaveEventAction(EventMessage em) throws MXException
preSaveEventAction in interface EventListenerMXExceptionpublic void eventAction(EventMessage em) throws MXException
eventAction in interface EventListenerMXExceptionpublic void postCommitEventAction(EventMessage em) throws MXException
postCommitEventAction in interface EventListenerMXExceptionpublic static void destroy()