|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.engine.WfEventHelper
Creates and stores workflow events. Used by the workflow engine service
StandardWfEngineService
.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) static class |
WfEventHelper.SaveEventAudit
Runnable class that implements the saving of event audits. |
Field Summary | |
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private static int |
MAX_ERROR_MESSAGE
|
private static int |
MAX_LENGTH
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Constructor Summary | |
WfEventHelper()
|
Method Summary | |
static void |
createAssignmentEvent(WfEventAuditType event_type,
WfExecutionObject exec_obj,
WTPrincipal new_assignee,
WTPrincipal old_assignee,
Role role)
Creates and stores WfAssignmentEventAudit
objects. |
static void |
createDataEvent(WfEventAuditType event_type,
WfExecutionObject exec_obj,
ProcessData old_data,
Role role,
String instructions)
Creates and stores WfDataEventAudit objects. |
static void |
createExceptionEvent(WfEventAuditType event_type,
WfExecutionObject exec_obj,
Exception exception)
Creates and stores WfExceptionEventAudit
objects. |
static void |
createProcessEvent(WfEventAuditType event_type,
WfProcess process)
Creates and stores WfAssignmentEventAudit
objects. |
static void |
createStateEvent(WfEventAuditType event_type,
WfExecutionObject exec_obj,
WfState old_state,
Vector events)
Creates and stores WfAssignmentEventAudit
objects. |
static void |
createVotingEvent(WfEventAuditType event_type,
WfExecutionObject exec_obj,
Role role,
WTPrincipalReference assignee_ref,
String comment,
Vector event_list,
boolean is_signed,
boolean is_required)
Creates and stores WfVotingEventAudit objects. |
private static String |
getErrorMessage(Exception e)
Capture an exception's stack trace and message in a single String |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(WfEventHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private static void |
setIdentificationAttributes(WfEventAudit event_audit,
WfExecutionObject exec_obj)
Sets identication attribute values in the event. |
private static void |
startEventAuditRecording(WfEventAudit event_audit)
Saves an audit event. |
private static String |
truncate(String name)
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final int MAX_LENGTH
private static final boolean VERBOSE
private static final int MAX_ERROR_MESSAGE
Constructor Detail |
public WfEventHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(WfEventHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static void createStateEvent(WfEventAuditType event_type, WfExecutionObject exec_obj, WfState old_state, Vector events) throws WTException
WfAssignmentEventAudit
objects.
event_type
- exec_obj
- old_state
- events
-
WTException
public static void createProcessEvent(WfEventAuditType event_type, WfProcess process) throws WTException
WfAssignmentEventAudit
objects.
event_type
- process
-
WTException
public static void createVotingEvent(WfEventAuditType event_type, WfExecutionObject exec_obj, Role role, WTPrincipalReference assignee_ref, String comment, Vector event_list, boolean is_signed, boolean is_required) throws WTException
WfVotingEventAudit
objects.
event_type
- exec_obj
- role
- assignee_ref
- comment
- event_list
- is_signed
- is_required
-
WTException
public static void createExceptionEvent(WfEventAuditType event_type, WfExecutionObject exec_obj, Exception exception) throws WTException
WfExceptionEventAudit
objects.
event_type
- exec_obj
- exception
-
WTException
public static void createDataEvent(WfEventAuditType event_type, WfExecutionObject exec_obj, ProcessData old_data, Role role, String instructions) throws WTException
WfDataEventAudit
objects.
event_type
- exec_obj
- old_data
- role
- instructions
-
WTException
public static void createAssignmentEvent(WfEventAuditType event_type, WfExecutionObject exec_obj, WTPrincipal new_assignee, WTPrincipal old_assignee, Role role) throws WTException
WfAssignmentEventAudit
objects.
event_type
- exec_obj
- new_assignee
- old_assignee
- role
-
WTException
private static void setIdentificationAttributes(WfEventAudit event_audit, WfExecutionObject exec_obj) throws WTException
event_audit
- - event to receive attributesexec_obj
- - execution object from which attributes are retrieved
WTException
private static void startEventAuditRecording(WfEventAudit event_audit) throws WTException
event_audit
- - event to be saved
WTException
private static String truncate(String name)
private static String getErrorMessage(Exception e)
String
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |