Enum Class ActivitiEventType
- All Implemented Interfaces:
Serializable,Comparable<ActivitiEventType>,Constable
Enumeration containing all possible types of
ActivitiEvents.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn activity has been cancelled because of boundary event.An activity is about to be executed as a compensation for another activity.An activity has been completed successfully.An activity has received an error event.An activity has received a message event.A message has been sent via message intermediate throw or message end eventA boundary, intermediate, or subprocess start message catching event has started and it is waiting for message.An activity has received a signal.An activity is starting to execute.An event type to be used by custom events.The process-engine that dispatched this event has been closed and cannot be used anymore.The process-engine that dispatched this event has been created and is ready for use.Existing entity has been activated.New entity is created.Existing entity is deleted.New entity has been created and all child-entities that are created as a result of the creation of this particular entity are also created and initialized.Existing entity has been suspended.Existing entity us updated.A event dispatched when aHistoricActivityInstanceis created.A event dispatched when aHistoricActivityInstanceis marked as ended.A event dispatched when aHistoricProcessInstanceis created.A event dispatched when aHistoricProcessInstanceis marked as ended.Timer has been cancelled (e.g. user task on which it was bounded has been completed earlier than expected)A job has been executed, but failed.A job has been successfully executed.The retry-count on a job has been decremented.A new membership has been created.A single membership has been deleted.All memberships in the related group have been deleted.A process has been cancelled.A process has been completed.A process has been completed with an error end event.A process instance has been started.Indicates the engine has taken (ie. followed) a sequenceflow from a source activity to a target activity.A task as been assigned.A task has been completed.A task has been created.Timer has been fired successfully.A Timer has been scheduled.When a BPMN Error was thrown, but was not caught within in the process.A new variable has been created.An existing variable has been deleted.An existing variable has been updated. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivitiEventType[]getTypesFromString(String string) static ActivitiEventTypeReturns the enum constant of this class with the specified name.static ActivitiEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENTITY_CREATED
New entity is created. -
ENTITY_INITIALIZED
New entity has been created and all child-entities that are created as a result of the creation of this particular entity are also created and initialized. -
ENTITY_UPDATED
Existing entity us updated. -
ENTITY_DELETED
Existing entity is deleted. -
ENTITY_SUSPENDED
Existing entity has been suspended. -
ENTITY_ACTIVATED
Existing entity has been activated. -
TIMER_SCHEDULED
A Timer has been scheduled. -
TIMER_FIRED
Timer has been fired successfully. -
JOB_CANCELED
Timer has been cancelled (e.g. user task on which it was bounded has been completed earlier than expected) -
JOB_EXECUTION_SUCCESS
A job has been successfully executed. -
JOB_EXECUTION_FAILURE
A job has been executed, but failed. Event should be an instance of aActivitiExceptionEvent. -
JOB_RETRIES_DECREMENTED
The retry-count on a job has been decremented. -
CUSTOM
An event type to be used by custom events. These types of events are never thrown by the engine itself, only be an external API call to dispatch an event. -
ENGINE_CREATED
The process-engine that dispatched this event has been created and is ready for use. -
ENGINE_CLOSED
The process-engine that dispatched this event has been closed and cannot be used anymore. -
ACTIVITY_STARTED
An activity is starting to execute. This event is dispatch right before an activity is executed. -
ACTIVITY_COMPLETED
An activity has been completed successfully. -
ACTIVITY_CANCELLED
An activity has been cancelled because of boundary event. -
ACTIVITY_SIGNALED
An activity has received a signal. Dispatched after the activity has responded to the signal. -
ACTIVITY_COMPENSATE
An activity is about to be executed as a compensation for another activity. The event targets the activity that is about to be executed for compensation. -
ACTIVITY_MESSAGE_SENT
A message has been sent via message intermediate throw or message end event -
ACTIVITY_MESSAGE_WAITING
A boundary, intermediate, or subprocess start message catching event has started and it is waiting for message. -
ACTIVITY_MESSAGE_RECEIVED
An activity has received a message event. Dispatched before the actual message has been received by the activity. This event will be either followed by aevent orinvalid reference
#ACTIVITY_SIGNALLEDfor the involved activity, if the message was delivered successfully.invalid reference
#ACTIVITY_COMPLETE -
ACTIVITY_ERROR_RECEIVED
An activity has received an error event. Dispatched before the actual error has been received by the activity. This event will be either followed by aevent orinvalid reference
#ACTIVITY_SIGNALLEDfor the involved activity, if the error was delivered successfully.invalid reference
#ACTIVITY_COMPLETE -
HISTORIC_ACTIVITY_INSTANCE_CREATED
A event dispatched when aHistoricActivityInstanceis created. This is a specialized version of theENTITY_CREATEDandENTITY_INITIALIZEDevent, with the same use case as theACTIVITY_STARTED, but containing slightly different data. Note this will be anActivitiEntityEvent, where the entity is theHistoricActivityInstance. Note that history (minimum level ACTIVITY) must be enabled to receive this event. -
HISTORIC_ACTIVITY_INSTANCE_ENDED
A event dispatched when aHistoricActivityInstanceis marked as ended. his is a specialized version of theENTITY_UPDATEDevent, with the same use case as theACTIVITY_COMPLETED, but containing slightly different data (e.g. the end time, the duration, etc.). Note that history (minimum level ACTIVITY) must be enabled to receive this event. -
SEQUENCEFLOW_TAKEN
Indicates the engine has taken (ie. followed) a sequenceflow from a source activity to a target activity. -
UNCAUGHT_BPMN_ERROR
When a BPMN Error was thrown, but was not caught within in the process. -
VARIABLE_CREATED
A new variable has been created. -
VARIABLE_UPDATED
An existing variable has been updated. -
VARIABLE_DELETED
An existing variable has been deleted. -
TASK_CREATED
A task has been created. This is thrown when task is fully initialized (before TaskListener.EVENTNAME_CREATE). -
TASK_ASSIGNED
A task as been assigned. This is thrown alongside with anENTITY_UPDATEDevent. -
TASK_COMPLETED
A task has been completed. Dispatched before the task entity is deleted (ENTITY_DELETED). If the task is part of a process, this event is dispatched before the process moves on, as a result of the task completion. In that case, aACTIVITY_COMPLETEDwill be dispatched after an event of this type for the activity corresponding to the task. -
PROCESS_STARTED
A process instance has been started. Dispatched when starting a process instance previously created. The event PROCESS_STARTED is dispatched after the associated event ENTITY_INITIALIZED. -
PROCESS_COMPLETED
A process has been completed. Dispatched after the last activity is ACTIVITY_COMPLETED. Process is completed when it reaches state in which process instance does not have any transition to take. -
PROCESS_COMPLETED_WITH_ERROR_END_EVENT
A process has been completed with an error end event. -
PROCESS_CANCELLED
A process has been cancelled. Dispatched when process instance is deleted by -
HISTORIC_PROCESS_INSTANCE_CREATED
A event dispatched when aHistoricProcessInstanceis created. This is a specialized version of theENTITY_CREATEDandENTITY_INITIALIZEDevent, with the same use case as thePROCESS_STARTED, but containing slightly different data (e.g. the start time, the start user id, etc.). Note this will be anActivitiEntityEvent, where the entity is theHistoricProcessInstance. Note that history (minimum level ACTIVITY) must be enabled to receive this event. -
HISTORIC_PROCESS_INSTANCE_ENDED
A event dispatched when aHistoricProcessInstanceis marked as ended. his is a specialized version of theENTITY_UPDATEDevent, with the same use case as thePROCESS_COMPLETED, but containing slightly different data (e.g. the end time, the duration, etc.). Note that history (minimum level ACTIVITY) must be enabled to receive this event. -
MEMBERSHIP_CREATED
A new membership has been created. -
MEMBERSHIP_DELETED
A single membership has been deleted. -
MEMBERSHIPS_DELETED
All memberships in the related group have been deleted. No individualMEMBERSHIP_DELETEDevents will be dispatched due to possible performance reasons. The event is dispatched before the memberships are deleted, so they can still be accessed in the dispatch method of the listener.
-
-
Field Details
-
EMPTY_ARRAY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getTypesFromString
- Parameters:
string- the string containing a comma-separated list of event-type names- Returns:
- a list of
ActivitiEventTypebased on the given list. - Throws:
ActivitiIllegalArgumentException- when one of the given string is not a valid type name
-