org.obe.spi.event
Class WorkItemEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.obe.spi.event.ApplicationEvent
          extended byorg.obe.spi.event.WorkflowEvent
              extended byorg.obe.spi.event.WorkItemEvent
All Implemented Interfaces:
java.io.Serializable

public final class WorkItemEvent
extends WorkflowEvent

Delivers work item event notifications.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static int ABORTED
          The work item was aborted.
static int ASSIGNED
          The work item was assigned or reassigned.
static int COMPLETED
          The work item was completed.
static int CREATED
          The work item was created.
static int RESUMED
          The work item was resumed.
static int STARTED
          The work item was started.
static int STOPPED
          The work item was stopped.
static int SUSPENDED
          The work item was suspended.
static int TERMINATED
          The work item was terminated.
 
Fields inherited from class org.obe.spi.event.WorkflowEvent
_broker, _id, _timestamp
 
Fields inherited from class org.obe.spi.event.ApplicationEvent
ACTION, CONTENT_TYPE, EMPTY_KEYS, EMPTY_MAP, EXCEPTION_EVENT, SCHEMA, TIMEOUT_EVENT
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WorkItemEvent(WorkItem source, int id, WorkflowEventBroker broker, Activity definition, int previousState)
           
 
Method Summary
 Activity getActivityDefinition()
           
 int getPreviousState()
           
 WMAEventCode getWMAEventCode()
          Returns the WfMC Interface 5 audit event code (if defined).
 WorkItem getWorkItem()
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.spi.event.WorkflowEvent
getId, getTimestamp
 
Methods inherited from class org.obe.spi.event.ApplicationEvent
getAction, getApplication, getContentType, getEventType, getExpiry, getKeys, getProperties, getProperty, getSchema, setApplication, setEventType, setExpiry, setKeys
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ABORTED

public static final int ABORTED
The work item was aborted.

See Also:
Constant Field Values

ASSIGNED

public static final int ASSIGNED
The work item was assigned or reassigned.

See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
The work item was completed.

See Also:
Constant Field Values

CREATED

public static final int CREATED
The work item was created.

See Also:
Constant Field Values

RESUMED

public static final int RESUMED
The work item was resumed.

See Also:
Constant Field Values

STARTED

public static final int STARTED
The work item was started.

See Also:
Constant Field Values

STOPPED

public static final int STOPPED
The work item was stopped.

See Also:
Constant Field Values

SUSPENDED

public static final int SUSPENDED
The work item was suspended.

See Also:
Constant Field Values

TERMINATED

public static final int TERMINATED
The work item was terminated.

See Also:
Constant Field Values
Constructor Detail

WorkItemEvent

public WorkItemEvent(WorkItem source,
                     int id,
                     WorkflowEventBroker broker,
                     Activity definition,
                     int previousState)
Method Detail

getWorkItem

public WorkItem getWorkItem()

getPreviousState

public int getPreviousState()

getActivityDefinition

public Activity getActivityDefinition()

getWMAEventCode

public WMAEventCode getWMAEventCode()
Description copied from class: WorkflowEvent
Returns the WfMC Interface 5 audit event code (if defined).

Specified by:
getWMAEventCode in class WorkflowEvent
Returns:
Audit event code.

toString

public java.lang.String toString()
Overrides:
toString in class ApplicationEvent


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.