|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.workflow.engine.WfCustomEvent
Workflow event that can be emitted with an arbitrary payload. The types
of possible custom events are defined in a resource bundle: "WfCustomEventType."
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private String |
customType
|
private static String |
EVENT_QUERY_URL
|
private Timestamp |
eventTime
|
private static Hashtable |
eventTypeCache
|
private static long |
eventTypeCacheExpiry
|
private Hashtable |
nameValueMap
|
private static String |
RESOURCE
|
private WfEngineService |
service
|
private static String |
TYPE_CLASSNAME
|
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
WfCustomEvent(WfEngineService svc,
String event_type,
Hashtable value_map)
Custom event constructor. |
|
WfCustomEvent(WfEngineService svc,
String event_type,
Object target,
Hashtable value_map)
Custom event constructor. |
Method Summary | |
static void |
checkCustomType(String event_type)
Thrwos an exception if event type passed as argument is not valid. |
private void |
customTypeValidate(String a_CustomType)
|
static String |
generateEventKey(String event_type)
Generates the event key given the type of the custom event, passed as a String. |
String |
getCustomType()
Gets the value of the attribute: customType; Type of the event. |
static Enumeration |
getCustomTypes()
Returns an enumeration contaiining all event types. |
Timestamp |
getEventTime()
Gets the value of the attribute: eventTime; Time the event occurred. |
Enumeration |
getNames()
Returns the names of the attributes stored in the event's table. |
protected Hashtable |
getNameValueMap()
Gets the value of the attribute: nameValueMap; Event payload. |
WfEngineService |
getService()
Gets the value of the attribute: service; Service that originated the event. |
Object |
getValue(String attr_name)
Gets the value corresponding to an attribute. |
void |
setCustomType(String a_CustomType)
Sets the value of the attribute: customType; Type of the event. |
void |
setEventTime(Timestamp a_EventTime)
Sets the value of the attribute: eventTime; Time the event occurred. |
protected void |
setNameValueMap(Hashtable a_NameValueMap)
Sets the value of the attribute: nameValueMap; Event payload. |
void |
setService(WfEngineService a_Service)
Sets the value of the attribute: service; Service that originated the event. |
Methods inherited from class wt.events.KeyedEvent |
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toMultiObjectEvent, toSingleObjectEvents, 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 String customType
private WfEngineService service
private Timestamp eventTime
private Hashtable nameValueMap
private static final String TYPE_CLASSNAME
private static String EVENT_QUERY_URL
private static Hashtable eventTypeCache
private static long eventTypeCacheExpiry
Constructor Detail |
public WfCustomEvent(WfEngineService svc, String event_type, Hashtable value_map) throws WTException
svc
- event_type
- value_map
-
WTException
public WfCustomEvent(WfEngineService svc, String event_type, Object target, Hashtable value_map) throws WTException
svc
- event_type
- target
- value_map
-
WTException
Method Detail |
public String getCustomType()
public void setCustomType(String a_CustomType) throws WTPropertyVetoException
a_CustomType
-
WTPropertyVetoException
private void customTypeValidate(String a_CustomType) throws WTPropertyVetoException
a_CustomType
-
WTPropertyVetoException
public WfEngineService getService()
public void setService(WfEngineService a_Service) throws WTPropertyVetoException
a_Service
-
WTPropertyVetoException
public Timestamp getEventTime()
public void setEventTime(Timestamp a_EventTime) throws WTPropertyVetoException
a_EventTime
-
WTPropertyVetoException
protected Hashtable getNameValueMap()
protected void setNameValueMap(Hashtable a_NameValueMap) throws WTPropertyVetoException
a_NameValueMap
-
WTPropertyVetoException
public static String generateEventKey(String event_type) throws WTException
event_type
-
WTException
public static void checkCustomType(String event_type) throws WTException
event_type
-
WTException
public static Enumeration getCustomTypes()
public Object getValue(String attr_name)
attr_name
-
public Enumeration getNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |