|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.workflow.engine.WfEngineServiceEvent
Keyed event emitted by the workflow engine caused by a change or exception in an execution object. Stores the type of the event, the source object and the new state or data. Either the state or the data must be null (but not both).
It is possible to configure which events are emitted at a template
level (affecting all instances of the template) and at the individual
process level.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private WfEventAuditType |
eventAuditType
|
private Object |
eventAuxData
|
private Object |
eventData
|
private static String |
RESOURCE
|
private WfEngineService |
service
|
private WfExecutionObject |
source
|
private Timestamp |
timestamp
|
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
WfEngineServiceEvent(WfEngineService svc,
Object tgt,
WfEventAuditType typ,
Timestamp time,
Object data,
Object aux_data)
Event constructor. |
|
WfEngineServiceEvent(WfEngineService svc,
WTList list,
WfEventAuditType typ,
Timestamp time,
Object data,
Object aux_data)
Event constructor. |
Method Summary | |
static String |
generateEventKey(WfEventAuditType event_type)
Helper function to generate the event key. |
WfEventAuditType |
getEventAuditType()
Gets the value of the attribute: eventAuditType; Type of the event. |
Object |
getEventAuxData()
Gets the value of the attribute: eventAuxData; Additional data used to characterize the event. |
Object |
getEventData()
Gets the value of the attribute: eventData; Object containing event relevant data. |
WfEngineService |
getService()
Gets the value of the attribute: service; Reference to the service object that emitted the event. |
WfExecutionObject |
getSource()
Gets the value of the attribute: source; Execution object that is the source of the event. |
Timestamp |
getTimestamp()
Gets the value of the attribute: timestamp; Time when the event occurred. |
void |
setEventAuditType(WfEventAuditType a_EventAuditType)
Sets the value of the attribute: eventAuditType; Type of the event. |
void |
setEventAuxData(Object a_EventAuxData)
Sets the value of the attribute: eventAuxData; Additional data used to characterize the event. |
void |
setEventData(Object a_EventData)
Sets the value of the attribute: eventData; Object containing event relevant data. |
void |
setService(WfEngineService a_Service)
Sets the value of the attribute: service; Reference to the service object that emitted the event. |
void |
setSource(WfExecutionObject a_Source)
Sets the value of the attribute: source; Execution object that is the source of the event. |
void |
setTimestamp(Timestamp a_Timestamp)
Sets the value of the attribute: timestamp; Time when the event occurred. |
KeyedEvent |
toMultiObjectEvent()
Given a single object event convert it to a multi object event with a WTCollection target. |
KeyedEvent[] |
toSingleObjectEvents()
Given an event with a target object of type WTCollection convert it to an array of single object KeyedEvents. |
Methods inherited from class wt.events.KeyedEvent |
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private WfEventAuditType eventAuditType
private WfExecutionObject source
private Object eventData
private WfEngineService service
private Timestamp timestamp
private Object eventAuxData
Constructor Detail |
public WfEngineServiceEvent(WfEngineService svc, Object tgt, WfEventAuditType typ, Timestamp time, Object data, Object aux_data)
svc
- tgt
- typ
- time
- data
- aux_data
- public WfEngineServiceEvent(WfEngineService svc, WTList list, WfEventAuditType typ, Timestamp time, Object data, Object aux_data)
svc
- typ
- time
- data
- aux_data
- Method Detail |
public WfEventAuditType getEventAuditType()
public void setEventAuditType(WfEventAuditType a_EventAuditType) throws WTPropertyVetoException
a_EventAuditType
-
WTPropertyVetoException
public WfExecutionObject getSource()
public void setSource(WfExecutionObject a_Source) throws WTPropertyVetoException
a_Source
-
WTPropertyVetoException
public Object getEventData()
public void setEventData(Object a_EventData) throws WTPropertyVetoException
a_EventData
-
WTPropertyVetoException
public WfEngineService getService()
public void setService(WfEngineService a_Service) throws WTPropertyVetoException
a_Service
-
WTPropertyVetoException
public Timestamp getTimestamp()
public void setTimestamp(Timestamp a_Timestamp) throws WTPropertyVetoException
a_Timestamp
-
WTPropertyVetoException
public Object getEventAuxData()
public void setEventAuxData(Object a_EventAuxData)
a_EventAuxData
- public static String generateEventKey(WfEventAuditType event_type)
event_type
-
public KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
public KeyedEvent[] toSingleObjectEvents() throws WTException
toSingleObjectEvents
in class KeyedEvent
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |