Class FlowableJobEventBuilder
java.lang.Object
org.flowable.job.service.event.impl.FlowableJobEventBuilder
Builder class used to create
FlowableEvent implementations.- Author:
- Frederik Heremans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowableEntityEventcreateEntityEvent(FlowableEngineEventType type, Object entity) static FlowableEntityEventcreateEntityExceptionEvent(FlowableEngineEventType type, Object entity, Throwable cause) protected static void
-
Constructor Details
-
FlowableJobEventBuilder
public FlowableJobEventBuilder()
-
-
Method Details
-
createEntityEvent
- Parameters:
type- type of evententity- the entity this event targets- Returns:
- an
FlowableEntityEvent.
-
createEntityExceptionEvent
public static FlowableEntityEvent createEntityExceptionEvent(FlowableEngineEventType type, Object entity, Throwable cause) - Parameters:
type- type of evententity- the entity this event targetscause- the cause of the event- Returns:
- an
FlowableEntityEventthat is also instance ofFlowableExceptionEvent. In case an ExecutionContext is active, the execution related event fields will be populated.
-
populateEventWithCurrentContext
-