org.obe.spi.event
Class ProcessDefinitionEvent

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

public final class ProcessDefinitionEvent
extends WorkflowEvent

Delivers process definition event notifications.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static int CREATED
          The process definition was created.
static int DELETED
          The process definition was deleted.
static int DISABLED
          The process definition was disabled.
static int ENABLED
          The process definition was enabled.
static int UPDATED
          The process definition was updated.
 
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
ProcessDefinitionEvent(WorkflowProcess source, int id, WorkflowEventBroker broker)
          Constructs a new process definition event.
 
Method Summary
 WorkflowProcess getProcessDefinition()
          Returns the source workflow process definition.
 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

CREATED

public static final int CREATED
The process definition was created.

See Also:
Constant Field Values

DELETED

public static final int DELETED
The process definition was deleted.

See Also:
Constant Field Values

DISABLED

public static final int DISABLED
The process definition was disabled.

See Also:
Constant Field Values

ENABLED

public static final int ENABLED
The process definition was enabled.

See Also:
Constant Field Values

UPDATED

public static final int UPDATED
The process definition was updated.

See Also:
Constant Field Values
Constructor Detail

ProcessDefinitionEvent

public ProcessDefinitionEvent(WorkflowProcess source,
                              int id,
                              WorkflowEventBroker broker)
Constructs a new process definition event.

Parameters:
source -
id -
broker -
Method Detail

getProcessDefinition

public WorkflowProcess getProcessDefinition()
Returns the source workflow process definition.

Returns:
The workflow process that fired the event.

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.