Class FlowableJobEventBuilder
- java.lang.Object
-
- org.flowable.job.service.event.impl.FlowableJobEventBuilder
-
public class FlowableJobEventBuilder extends Object
Builder class used to createFlowableEventimplementations.- Author:
- Frederik Heremans
-
-
Constructor Summary
Constructors Constructor Description FlowableJobEventBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlowableEntityEventcreateEntityEvent(FlowableEngineEventType type, Object entity)static FlowableEntityEventcreateEntityExceptionEvent(FlowableEngineEventType type, Object entity, Throwable cause)protected static voidpopulateEventWithCurrentContext(FlowableEngineEventImpl event)
-
-
-
Method Detail
-
createEntityEvent
public static FlowableEntityEvent createEntityEvent(FlowableEngineEventType type, Object entity)
- 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
protected static void populateEventWithCurrentContext(FlowableEngineEventImpl event)
-
-