| java.lang.Object java.util.EventObject de.danet.an.workflow.domain.DefaultAuditEvent
All known Subclasses: de.danet.an.workflow.domain.DefaultDataAuditEvent, de.danet.an.workflow.domain.DefaultAssignmentAuditEvent, de.danet.an.workflow.domain.ToolInvocationFailedAuditEvent, de.danet.an.workflow.domain.ImplCompleteAuditEvent, de.danet.an.workflow.domain.DefaultCreateProcessAuditEvent, de.danet.an.workflow.domain.DefaultStateAuditEvent,
DefaultAuditEvent | public class DefaultAuditEvent extends EventObject implements WfAuditEvent,Serializable(Code) | | A DefaultAuditEvent implements an audit record of
workflow event information.
It provides information on the source of the event and contains
specific event data. Workflow events include state changes, change
of a resource assignment, and data changes. Workflow events are
persistent and can be accessed navigating the history relationship
of a WfExecutionObject .
Workflow audit event objects are not part of the persistent state of
their source workflow object.
|
Constructor Summary | |
protected | DefaultAuditEvent(Object source) Create a DefaultAuditEvent related to the given
WfExecutionObject . | protected | DefaultAuditEvent(WfAuditEvent baseInfo) Create a DefaultAuditEvent triggered by a given
WfExecutionObject . | protected | DefaultAuditEvent(WfAuditEvent baseInfo, boolean skip) Create a DefaultAuditEvent triggered by a given
WfExecutionObject .
Parameters: baseInfo - a WfAuditEvent containing furtherinformation for the event. Parameters: skip - if true the event will not be processed(i.e. | protected | DefaultAuditEvent(Object source, DefaultAuditEvent baseInfo) Create a DefaultAuditEvent with the given
WfExecutionObject as source and all other
attributes copied from the given event. | public | DefaultAuditEvent(WfActivity source, String eventType, String actKey, String actName, WfAuditEvent processInfo) Creates a new DefaultAuditEvent containing process-related
and activity-related information, only. | public | DefaultAuditEvent(WfActivity source, String eventType, Date timestamp, String actKey, String actName, String processKey, String processName, String processMgrName, String processMgrVersion, int auditEventSelection, boolean store) Creates a new DefaultAuditEvent containing process-related
and activity-related information.
This descriptor's intention is for re-creation usage, only.
Parameters: source - the activity which is the originator of the audit event. | public | DefaultAuditEvent(WfProcess source, String eventType, String processKey, String processName, String processMgrName, String processMgrVersion, int auditEventSelection, boolean store) Creates a new DefaultAuditEvent containing process-related
information, only. | public | DefaultAuditEvent(WfProcess source, String eventType, Date timestamp, String processKey, String processName, String processMgrName, String processMgrVersion, int auditEventSelection, boolean store) Creates a new DefaultAuditEvent containing process-related
information, only. |
Method Summary | |
public String | activityKey() Returns the current value of the attribute activityKey . | public String | activityName() Returns the current value of the attribute activityName . | public int | auditEventSelection() Returns the audit event selection of the source of this event. | public String | eventType() Returns the current value of the attribute eventType . | public Object | getSource() Override getSource to do deferred unmarshalling
if required. | public String | processKey() Returns the current value of the attribute processKey . | public String | processMgrName() Returns the current value of the attribute
processMgrName . | public String | processMgrVersion() Returns the current value of the attribute
processMgrVersion . | public String | processName() Returns the current value of the attribute processName . | public DefaultAuditEvent | replaceSource(Object source) Return a new audit event object with the source attribute
replaced with the given object. | public boolean | skip() Indicates if the event is to be processed (i.e. | public WfExecutionObject | source() Returns the current value of the attribute source .
The source of the event is the WfExceutionObject
associated to the event, i.e. | public boolean | store() Indicates if the event is to be stored in the database. | public Date | timeStamp() Returns the current value of the attribute timeStamp . | public String | toString() Returns a textual representation of the event. |
DefaultAuditEvent | protected DefaultAuditEvent(Object source)(Code) | | Create a DefaultAuditEvent related to the given
WfExecutionObject .
Parameters: source - the related object. |
DefaultAuditEvent | protected DefaultAuditEvent(WfAuditEvent baseInfo)(Code) | | Create a DefaultAuditEvent triggered by a given
WfExecutionObject .
Parameters: baseInfo - a WfAuditEvent containing furtherinformation for the event. |
DefaultAuditEvent | protected DefaultAuditEvent(WfAuditEvent baseInfo, boolean skip)(Code) | | Create a DefaultAuditEvent triggered by a given
WfExecutionObject .
Parameters: baseInfo - a WfAuditEvent containing furtherinformation for the event. Parameters: skip - if true the event will not be processed(i.e. fed back to the engine) when retrieved from the event queue. |
DefaultAuditEvent | protected DefaultAuditEvent(Object source, DefaultAuditEvent baseInfo)(Code) | | Create a DefaultAuditEvent with the given
WfExecutionObject as source and all other
attributes copied from the given event.
Parameters: source - the value for the source attribute. Parameters: baseInfo - a WfAuditEvent containing furtherinformation for the event. |
DefaultAuditEvent | public DefaultAuditEvent(WfActivity source, String eventType, String actKey, String actName, WfAuditEvent processInfo)(Code) | | Creates a new DefaultAuditEvent containing process-related
and activity-related information, only.
Parameters: source - the activity which is the originator of the audit event. Parameters: eventType - the event's type identifier. Parameters: actKey - the attribute activityKey . Parameters: actName - the attribute activityName . Parameters: processInfo - a WfAuditEvent containingprocess-related information about the process that contains theactivity. |
DefaultAuditEvent | public DefaultAuditEvent(WfActivity source, String eventType, Date timestamp, String actKey, String actName, String processKey, String processName, String processMgrName, String processMgrVersion, int auditEventSelection, boolean store)(Code) | | Creates a new DefaultAuditEvent containing process-related
and activity-related information.
This descriptor's intention is for re-creation usage, only.
Parameters: source - the activity which is the originator of the audit event. Parameters: eventType - the event's type identifier. Parameters: timestamp - the event time. Parameters: actKey - the attribute activityKey . Parameters: actName - the attribute activityName . Parameters: processKey - the attribute processKey . Parameters: processName - the attribute processName . Parameters: processMgrName - the attribute processMgrName . Parameters: processMgrVersion - the attribute processMgrVersion . Parameters: auditEventSelection - the audit event selection of source Parameters: store - if true the event will be stored inthe database |
DefaultAuditEvent | public DefaultAuditEvent(WfProcess source, String eventType, String processKey, String processName, String processMgrName, String processMgrVersion, int auditEventSelection, boolean store)(Code) | | Creates a new DefaultAuditEvent containing process-related
information, only.
Parameters: source - the process which is the originator of the audit event Parameters: eventType - the event's type identifier Parameters: processKey - the attribute processKey . Parameters: processName - the attribute processName . Parameters: processMgrName - the attribute processMgrName . Parameters: processMgrVersion - the attribute processMgrVersion . Parameters: auditEventSelection - the audit event selection of source Parameters: store - if true the event will be stored inthe database |
DefaultAuditEvent | public DefaultAuditEvent(WfProcess source, String eventType, Date timestamp, String processKey, String processName, String processMgrName, String processMgrVersion, int auditEventSelection, boolean store)(Code) | | Creates a new DefaultAuditEvent containing process-related
information, only.
Parameters: source - the process which is the originator of the audit event Parameters: eventType - the event's type identifier Parameters: timestamp - the event's timestamp Parameters: processKey - the attribute processKey . Parameters: processName - the attribute processName . Parameters: processMgrName - the attribute processMgrName . Parameters: processMgrVersion - the attribute processMgrVersion . Parameters: auditEventSelection - the audit event selection of source Parameters: store - if true the event will be stored inthe database |
activityKey | public String activityKey()(Code) | | Returns the current value of the attribute activityKey .
the current value of the attribute. |
activityName | public String activityName()(Code) | | Returns the current value of the attribute activityName .
the current value of the attribute. |
auditEventSelection | public int auditEventSelection()(Code) | | Returns the audit event selection of the source of this event.
the audit event selection |
eventType | public String eventType()(Code) | | Returns the current value of the attribute eventType .
the current value of the attribute. |
getSource | public Object getSource()(Code) | | Override getSource to do deferred unmarshalling
if required.
|
processKey | public String processKey()(Code) | | Returns the current value of the attribute processKey .
the current value of the attribute. |
processMgrName | public String processMgrName()(Code) | | Returns the current value of the attribute
processMgrName .
the current value of the attribute. |
processMgrVersion | public String processMgrVersion()(Code) | | Returns the current value of the attribute
processMgrVersion .
the current value of the attribute. |
processName | public String processName()(Code) | | Returns the current value of the attribute processName .
the current value of the attribute. |
replaceSource | public DefaultAuditEvent replaceSource(Object source)(Code) | | Return a new audit event object with the source attribute
replaced with the given object. Derived classes must override
this method and return an object of the derived type.
Parameters: source - the new source attribute. the new audit event. |
skip | public boolean skip()(Code) | | Indicates if the event is to be processed (i.e. fed back to the
event queue).
true if the event is not to be processed. |
store | public boolean store()(Code) | | Indicates if the event is to be stored in the database.
true if the event is not to be processed. |
timeStamp | public Date timeStamp()(Code) | | Returns the current value of the attribute timeStamp .
the current value of the attribute. |
toString | public String toString()(Code) | | Returns a textual representation of the event.
the textual representation |
|
|