|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.core.spi.extensions.runtime.Event
public class Event
Representation of an event. Indicates the event source and allows for controlled state changes of the event source. This class is not intended to be subclassed by third parties.
| Field Summary | |
|---|---|
static int |
ACTIVITY_INSTANCE
Indicates the event source to be an activity instance. |
static int |
ENGINE_EVENT
Indicates an engine internal, push-type event. |
static int |
OID_UNDEFINED
Used to mark field handlerOID or handlerModelElementOID
as undefined |
static int |
PROCESS_INSTANCE
Indicates the event source to be a process instance. |
static int |
PULL_EVENT
Indicates an arbitrary, pull-type event. |
static int |
PUSH_EVENT
Indicates an arbitrary, push-type event. |
| Constructor Summary | |
|---|---|
Event(int type,
long objectOID,
long handlerRuntimeOID,
long handlerModelElementOID,
int emitterType)
|
|
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
Gets an event specific attribute. |
Map |
getAttributes()
Gets all event specific attributes. |
int |
getEmitterType()
Gets the type of the event source. |
long |
getHandlerModelElementOID()
Gets the model element OID of the event handler this event is targeting. |
long |
getHandlerOID()
Gets the runtime OID of the event handler this event is targeting. |
ActivityInstanceState |
getIntendedState()
Gets the intended state of activity event sources, allowing for safe state changes. |
long |
getObjectOID()
Gets the runtime OID of the event source. |
int |
getType()
Gets the event type. |
void |
setAttribute(String name,
Object value)
Sets an event specific attribute. |
void |
setAttributes(Map attributes)
Sets event specific attributes. |
void |
setHandlerModelElementOID(long handlerModelElementOID)
Sets the model element OID of the event handler this event is targeting. |
void |
setHandlerOID(long handlerOID)
Sets the runtime OID of the event handler this event is targeting. |
void |
setIntendedState(ActivityInstanceState state)
Sets the intended target state of activity event sources, allowing event actions to trigger safe state changes. |
String |
toString()
Produces a human readable representation of this event. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int OID_UNDEFINED
handlerOID or handlerModelElementOID
as undefined
public static final int ACTIVITY_INSTANCE
public static final int PROCESS_INSTANCE
public static final int ENGINE_EVENT
public static final int PULL_EVENT
public static final int PUSH_EVENT
| Constructor Detail |
|---|
public Event(int type,
long objectOID,
long handlerRuntimeOID,
long handlerModelElementOID,
int emitterType)
| Method Detail |
|---|
public void setAttribute(String name,
Object value)
name - The name of the attribute to be set.value - The actual attribute value.public void setAttributes(Map attributes)
attributes - The map containing.public Object getAttribute(String name)
name - The name of the attribute to be retrieved.
null.public Map getAttributes()
public long getHandlerOID()
public void setHandlerOID(long handlerOID)
handlerOID - - the runtime OID of the event handler this event is targetingpublic long getHandlerModelElementOID()
public void setHandlerModelElementOID(long handlerModelElementOID)
handlerModelElementOID - - the model element OID of the event handler this event is targetingpublic long getObjectOID()
getEmitterType()public int getType()
ENGINE_EVENT,
PULL_EVENTpublic int getEmitterType()
ACTIVITY_INSTANCE,
PROCESS_INSTANCEpublic ActivityInstanceState getIntendedState()
public void setIntendedState(ActivityInstanceState state)
throws IllegalStateChangeException
state - The intended target state.
IllegalStateChangeException - if there was already another state change
scheduled.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||