Enum Class FlowableEngineEventType
java.lang.Object
java.lang.Enum<FlowableEngineEventType>
org.flowable.common.engine.api.delegate.event.FlowableEngineEventType
- All Implemented Interfaces:
Serializable,Comparable<FlowableEngineEventType>,Constable,FlowableEventType
public enum FlowableEngineEventType
extends Enum<FlowableEngineEventType>
implements FlowableEventType
Enumeration containing all possible types of
FlowableEvents.- Author:
- Frederik Heremans
-
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 a conditional event.A boundary, intermediate, or subprocess start conditional catching event has started.An activity has received an error event.An activity has received an escalation event.A boundary, intermediate, or subprocess start escalation catching event has started.A boundary, intermediate, or subprocess start message catching event has been cancelled.An activity has received a message event.A boundary, intermediate, or subprocess start message catching event has started.A boundary, intermediate, or subprocess start signal catching event has started.An activity has received a signal.An activity is starting to execute.A case instance has been ended by either completing or terminating it.A case instance has been started.A change tenant id was executed.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 properties have been set.Existing entity has been suspended.Existing entity us updated.A event dispatched when a HistoricActivityInstance is created.A event dispatched when a HistoricActivityInstance is 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.).A event dispatched when a HistoricProcessInstance is created.A event dispatched when a HistoricProcessInstance is 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.).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.A job has been moved to become a deadletter job.A job has been rejected by the async executor.The job has been rescheduled.The retry-count on a job has been decremented.A multi-instance activity has been cancelled.A multi-instance activity has been completed successfully.A multi-instance activity has met its condition and completed successfully.A multi-instance activity is starting to execute.A process has been cancelled.A process has been completed.A process has been completed with an error end event.A process has been completed with an escalation end event.A process has been completed with a terminate end event.A process instance has been created.A process instance has been started.Indicates the engine has taken (ie. followed) a sequenceflow from a source activity to a target activity.A stage instance (plan item) has been ended (either through completion, manual termination or an exit).A stage instance (plan item) has been started (went into active state, not to be confused with the creation of the stage plan item).A task as been assigned.A task has been completed.A task has been created.A task dueDate has been changed.A task name has been changed.A task owner has been changed.A task priority has been changed.Timer has been fired successfully.A Timer has been scheduled.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 FlowableEngineEventType[]getTypesFromString(String string) static FlowableEngineEventTypeReturns the enum constant of this class with the specified name.static FlowableEngineEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.flowable.common.engine.api.delegate.event.FlowableEventType
name
-
Enum Constant Details
-
ENTITY_CREATED
New entity is created. -
ENTITY_INITIALIZED
New entity has been created and all properties have been set. -
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 a ExceptionEvent. -
JOB_RETRIES_DECREMENTED
The retry-count on a job has been decremented. -
JOB_REJECTED
A job has been rejected by the async executor. This most likely means the queue is full. -
JOB_RESCHEDULED
The job has been rescheduled. -
JOB_MOVED_TO_DEADLETTER
A job has been moved to become a deadletter job. This typically means that the number of retries have been exhausted. -
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 dispatched 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. -
MULTI_INSTANCE_ACTIVITY_STARTED
A multi-instance activity is starting to execute. This event is dispatched right before an activity is executed. -
MULTI_INSTANCE_ACTIVITY_COMPLETED
A multi-instance activity has been completed successfully. -
MULTI_INSTANCE_ACTIVITY_COMPLETED_WITH_CONDITION
A multi-instance activity has met its condition and completed successfully. -
MULTI_INSTANCE_ACTIVITY_CANCELLED
A multi-instance activity has been cancelled. -
ACTIVITY_SIGNAL_WAITING
A boundary, intermediate, or subprocess start signal catching event has started. -
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_CONDITIONAL_WAITING
A boundary, intermediate, or subprocess start conditional catching event has started. -
ACTIVITY_CONDITIONAL_RECEIVED
An activity has received a conditional event. Dispatched before the actual conditional event has been received by the activity. This event will be either followed by a #ACTIVITY_SIGNALLED event or #ACTIVITY_COMPLETED for the involved activity, if the error was delivered successfully. -
ACTIVITY_ESCALATION_WAITING
A boundary, intermediate, or subprocess start escalation catching event has started. -
ACTIVITY_ESCALATION_RECEIVED
An activity has received an escalation event. Dispatched before the actual escalation has been received by the activity. This event will be either followed by a #ACTIVITY_SIGNALLED event or #ACTIVITY_COMPLETED for the involved activity, if the error was delivered successfully. -
ACTIVITY_MESSAGE_WAITING
A boundary, intermediate, or subprocess start message catching event has started. -
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 a #ACTIVITY_SIGNALLED event or #ACTIVITY_COMPLETED for the involved activity, if the message was delivered successfully. -
ACTIVITY_MESSAGE_CANCELLED
A boundary, intermediate, or subprocess start message catching event has been cancelled. -
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 a #ACTIVITY_SIGNALLED event or #ACTIVITY_COMPLETED for the involved activity, if the error was delivered successfully. -
HISTORIC_ACTIVITY_INSTANCE_CREATED
A event dispatched when a HistoricActivityInstance is 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 an FlowableEngineEventType, where the entity is the HistoricActivityInstance. Note that history (minimum level ACTIVITY) must be enabled to receive this event. -
HISTORIC_ACTIVITY_INSTANCE_ENDED
A event dispatched when a HistoricActivityInstance is 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. -
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 an #ENTITY_UPDATED event. -
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, a #ACTIVITY_COMPLETED will be dispatched after an event of this type for the activity corresponding to the task. -
TASK_OWNER_CHANGED
A task owner has been changed. This is thrown alongside with an #ENTITY_UPDATED event. -
TASK_PRIORITY_CHANGED
A task priority has been changed. This is thrown alongside with an #ENTITY_UPDATED event. -
TASK_DUEDATE_CHANGED
A task dueDate has been changed. This is thrown alongside with an #ENTITY_UPDATED event. -
TASK_NAME_CHANGED
A task name has been changed. This is thrown alongside with an #ENTITY_UPDATED event. -
PROCESS_CREATED
A process instance has been created. All basic properties have been set, but variables not yet. -
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 and after the variables have been set. -
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_TERMINATE_END_EVENT
A process has been completed with a terminate end event. -
PROCESS_COMPLETED_WITH_ERROR_END_EVENT
A process has been completed with an error end event. -
PROCESS_COMPLETED_WITH_ESCALATION_END_EVENT
A process has been completed with an escalation end event. -
PROCESS_CANCELLED
A process has been cancelled. Dispatched when process instance is deleted by org.flowable.engine.impl.RuntimeServiceImpl#deleteProcessInstance(java.lang.String, java.lang.String), before DB delete. -
HISTORIC_PROCESS_INSTANCE_CREATED
A event dispatched when a HistoricProcessInstance is 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 an FlowableEngineEventType, where the entity is the HistoricProcessInstance. Note that history (minimum level ACTIVITY) must be enabled to receive this event. -
HISTORIC_PROCESS_INSTANCE_ENDED
A event dispatched when a HistoricProcessInstance is 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. -
CASE_STARTED
A case instance has been started. Dispatched when starting a case instance previously created. The event is dispatched after the associatedENTITY_INITIALIZEDand the variables have been set. -
CASE_ENDED
A case instance has been ended by either completing or terminating it. The event is being dispatched after the lifecycle listeners have been invoked, but before the end state will be set on the case instance. -
STAGE_STARTED
A stage instance (plan item) has been started (went into active state, not to be confused with the creation of the stage plan item). The event is being dispatched after the lifecycle listeners have been invoked. -
STAGE_ENDED
A stage instance (plan item) has been ended (either through completion, manual termination or an exit). The event is being dispatched after the lifecycle listeners have been invoked. -
CHANGE_TENANT_ID
A change tenant id was executed.
-
-
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:
- an array of FlowableEngineEventType based on the given string.
- Throws:
FlowableIllegalArgumentException- when one of the given string is not a valid type name
-