org.obe.spi.event
Class AttributeInstanceEvent

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

public final class AttributeInstanceEvent
extends WorkflowEvent

Delivers attribute instance event notifications.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static int CREATED
          The attribute was created.
static int DELETED
          The attribute was deleted.
static int UPDATED
          The attribute 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
AttributeInstanceEvent(AttributeInstance source, int id, WorkflowEventBroker broker, DataField definition, java.lang.Object previousValue)
           
 
Method Summary
 AttributeInstance getAttributeInstance()
          Returns the source attribute instance entity.
 DataField getDataField()
          Returns the definition of the source attribute.
 java.lang.Object getNewValue()
          Returns the new value of the attribute.
 java.lang.Object getPreviousValue()
          Returns the value of the attribute prior to this update.
 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 attribute was created.

See Also:
Constant Field Values

DELETED

public static final int DELETED
The attribute was deleted.

See Also:
Constant Field Values

UPDATED

public static final int UPDATED
The attribute was updated.

See Also:
Constant Field Values
Constructor Detail

AttributeInstanceEvent

public AttributeInstanceEvent(AttributeInstance source,
                              int id,
                              WorkflowEventBroker broker,
                              DataField definition,
                              java.lang.Object previousValue)
Method Detail

getAttributeInstance

public AttributeInstance getAttributeInstance()
Returns the source attribute instance entity.

Returns:
The attribute instance that fired the event.

getDataField

public DataField getDataField()
Returns the definition of the source attribute.

Returns:
The data field definition from the workflow process definition or package.

getPreviousValue

public java.lang.Object getPreviousValue()
Returns the value of the attribute prior to this update.

Returns:
Old attribute value.

getNewValue

public java.lang.Object getNewValue()
Returns the new value of the attribute.

Returns:
New attribute value.

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.