org.obe.spi.event
Class ProcessInstanceEvent

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

public final class ProcessInstanceEvent
extends WorkflowEvent

Delivers process instance event notifications.

Author:
Adrian Price
See Also:
ProcessInstanceListener, Serialized Form

Field Summary
static int ABORTED
          The process instance was aborted.
static int COMPLETED
          The process instance was completed.
static int CREATED
          The process instance was created.
static int DELETED
          The process instance was deleted.
static int RESUMED
          The process instance was resumed.
static int STARTED
          The process instance was started.
static int SUSPENDED
          The process instance was suspended.
static int TERMINATED
          The process instance 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
ProcessInstanceEvent(ProcessInstance source, int id, WorkflowEventBroker broker, WorkflowProcess definition, int previousState)
          Constructs a new process instance event.
 
Method Summary
 int getPreviousState()
           
 WorkflowProcess getProcessDefinition()
          Returns the definition of the source process instance.
 ProcessInstance getProcessInstance()
          Returns the source process instance.
 WMAEventCode getWMAEventCode()
          Returns the WfMC Interface 5 audit event code (if defined).
 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 process instance was aborted.

See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
The process instance was completed.

See Also:
Constant Field Values

CREATED

public static final int CREATED
The process instance was created.

See Also:
Constant Field Values

DELETED

public static final int DELETED
The process instance was deleted.

See Also:
Constant Field Values

RESUMED

public static final int RESUMED
The process instance was resumed.

See Also:
Constant Field Values

STARTED

public static final int STARTED
The process instance was started.

See Also:
Constant Field Values

SUSPENDED

public static final int SUSPENDED
The process instance was suspended.

See Also:
Constant Field Values

TERMINATED

public static final int TERMINATED
The process instance was terminated.

See Also:
Constant Field Values
Constructor Detail

ProcessInstanceEvent

public ProcessInstanceEvent(ProcessInstance source,
                            int id,
                            WorkflowEventBroker broker,
                            WorkflowProcess definition,
                            int previousState)
Constructs a new process instance event.

Parameters:
source -
id -
broker -
definition -
previousState -
Method Detail

getProcessInstance

public ProcessInstance getProcessInstance()
Returns the source process instance.

Returns:
The process instance that fired the event.

getPreviousState

public int getPreviousState()

getProcessDefinition

public WorkflowProcess getProcessDefinition()
Returns the definition of the source process instance.

Returns:
The workflow process definition.

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.