public class Event extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Event(int type,
long objectOID,
long handlerRuntimeOID,
long handlerModelElementOID,
int emitterType) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final int OID_UNDEFINED
handlerOID or handlerModelElementOID
as undefinedpublic 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
public Event(int type,
long objectOID,
long handlerRuntimeOID,
long handlerModelElementOID,
int emitterType)
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.Copyright © 2016 Eclipse Stardust. All Rights Reserved.