| org.obe.spi.event.ApplicationEvent org.obe.spi.event.WorkflowEvent
All known Subclasses: org.obe.spi.event.WorkItemEvent, org.obe.spi.event.TransitionEvent, org.obe.spi.event.ProcessInstanceEvent, org.obe.spi.event.ProcessDefinitionEvent, org.obe.spi.event.PackageEvent, org.obe.spi.event.ActivityInstanceEvent, org.obe.spi.event.AttributeInstanceEvent,
WorkflowEvent | abstract public class WorkflowEvent extends ApplicationEvent (Code) | | Base class for workflow notification events. Sub-classes must follow a
specific design pattern: they must supply a single, public constructor that
takes the following arguments: (Object source, int id,
WorkflowEventBroker [, AbstractWFElement definition]) . The
source and definition arguments are sub-classes of
Object and AbstractWFElement respectively. The
definition argument is optional. The event ids should be
declared by the event subclass, and must be contiguous and 0-based.
author: Adrian Price See Also: AbstractListenerSupport |
Method Summary | |
final public int | getId() Returns the event id, as defined in subclasses. | public long | getTimestamp() Returns the system time at which the event occurred. | abstract public WMAEventCode | getWMAEventCode() Returns the WfMC Interface 5 audit event code (if defined). |
_id | final protected int _id(Code) | | |
_timestamp | final protected long _timestamp(Code) | | |
WorkflowEvent | protected WorkflowEvent(Object source, int id, Class sourceClass, String eventType, Serializable key, WorkflowEventBroker broker)(Code) | | Construct a new WorkflowEvent .
Parameters: source - The entity that is the source of this event. Parameters: id - The event ID code. N.B. Event codes are defined bysub-classes; they must be contiguous and 0-based. Parameters: sourceClass - The SPI interface implemented by thesource object. Parameters: eventType - The event name. This has the form<event-class> Parameters: key - The primary key of the source entity. See Also: AbstractListenerSupport.AbstractListenerSupport |
getId | final public int getId()(Code) | | Returns the event id, as defined in subclasses.
The event id. |
getTimestamp | public long getTimestamp()(Code) | | Returns the system time at which the event occurred.
System time in milliseconds. |
getWMAEventCode | abstract public WMAEventCode getWMAEventCode()(Code) | | Returns the WfMC Interface 5 audit event code (if defined).
Audit event code. |
|
|