|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuego.papi.InstanceEvent
Contains the information of a process-instance event.
| Field Summary | |
Time |
activationTime
Time when the main task of the current activity started to execute. |
String |
activity
Activity where the event was generated. |
String[] |
bussinesVariablesIds
External varible ids in the event. |
Object[] |
bussinesVariablesValues
External varible values in the event. |
int |
category
Category of the event. |
String |
eventData
Information of the event. |
int |
id
Id of the event. |
int |
instanceIn
Instance number where the event was generated. |
String |
participantId
Participant which generates the event. |
int |
participantIn
Participant number which generates the event. |
int |
processIn
Process number where the event was generated. |
Time |
receiveTime
Time when the instance arrived to the current activity. |
static String |
TASK_EXECUTION_RESULT
Key for the task execution result (variable result). |
static String |
TASK_NAME
Key for the task name. |
static String |
TASK_NUMBER
Key for the task number |
static String |
TASK_STATE
Key for the task state. |
int |
threadIn
Thread number where the event was generated. |
Time |
timeStamp
Time when the event was generated. |
int |
type
Event type. |
| Constructor Summary | |
InstanceEvent()
|
|
| Method Summary | |
int |
compareTo(Object compareObject)
Compares this object with the specified object for order. |
String |
getDescription(Locale locale)
Gets the description of the event for the given Locale |
String |
getEventDataValue(String key)
Gets the value of the key, which is defined in the event data. |
String |
toString()
Gets the representation of the instance as a String |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Time activationTime
public String activity
public String[] bussinesVariablesIds
public Object[] bussinesVariablesValues
public int category
public String eventData
public int id
public int instanceIn
public String participantId
public int participantIn
public int processIn
public Time receiveTime
public int threadIn
public Time timeStamp
public int type
public static final String TASK_NUMBER
public static final String TASK_NAME
public static final String TASK_STATE
public static final String TASK_EXECUTION_RESULT
| Constructor Detail |
public InstanceEvent()
| Method Detail |
public final String getDescription(Locale locale)
locale - locale to localize the description.
public final String toString()
public String getEventDataValue(String key)
InstanceEvent[] events = processServiceSession.getInstanceEvents("/MyProcessId/1/0");
for (int i=0; i < events.length; i++) {
if (events[i].type == EventType.ITEM_EXECUTED) {
String taskName = events[i].getEventData(InstanceEvent.TASK_NAME);
String taskResult = events[i].getEventData(InstanceEvent.TASK_EXECUTION_RESULT);
System.out.println("Task '" + taskName + "' was executed -> result = '" + taskResult + "'");
}
}
key - key of the value to obtain.
public int compareTo(Object compareObject)
Implementation of the method inherited from the interface Comparable.
compareTo in interface ComparablecompareObject - the Object to be compared.
ClassCastException - if the specified object's type prevents it
from being compared to this Object.
|
ALBPM Process API (PAPI) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||