The class also defines four constants:
The object can be initialized in five distinct ways:
With a business document
This method can be used by workflow handlers, action steps, senders, and their handlers.
public EventInfo(java.lang.String eventCode, BusinessDocumentInterface document, java.lang.String[] params)
With a business document and an exception or error
This method can be used by workflow handlers, action steps, senders, and their handlers when an exception or error occurs.
public EventInfo(java.lang.String eventCode, BusinessDocumentInterface document, java.lang.String[] params, java.lang.Throwable t)
With a document UUID
This method can be used by a receiver and its handlers.
public EventInfo(java.lang.String eventCode, java.lang.String documentUUID, java.lang.String[] params)
With a document UUID and an error or exception
This method can be used by the receiver and its handlers when an exception or error occurs.
public EventInfo(String eventCode, String documentUUID, String[] params, Throwable t)
With a document UUID and document parent UUID
public EventInfo(java.lang.String eventCode, java.lang.String documentUUID, java.lang.String documentParentUUID, java.lang.String[] params)
getEventCode
Retrieves the event code
public String getEventCode()
None
getBusinessDocument
Retrieves the business document
public BusinessDocument getBusinessDocument()
None
getDocumentParentUUID
Retrieves the document parent Universal Unique Identifier (UUID)
public java.lang.String getDocumentParentUUID()
None
getDocumentUUID
Retrieves the document UUID
public String getDocumentUUID
None
getParams
Retrieves the parameter array
public String[] getParams()
None
getStackTrace
Retrieves the stack trace
public Throwable getStackTrace()
None
getSourceClass
Retrieves the source class
public String getSourceClass()
None
setSourceClass
Sets the source class
public void setSourceClass(String sourceClass)
setFaultType
Sets the fault type. See Constants.
public void setFaultType(String faultType)
getFaultType
Retrieves the fault type. See Constants.
public String getFaultType()
None
These constants are used to define fault types:
public static final String FAULTTYPE_UNKNOWN = "0" public static final String FAULTTYPE_SOURCE = "1" public static final String FAULTTYPE_TARGET = "2" public static final String FAULTTYPE_SYSTEM = "3"