public class ActivitiEventBuilder extends Object
FlowableEvent implementations.| Constructor and Description |
|---|
ActivitiEventBuilder() |
public static FlowableEvent createGlobalEvent(FlowableEngineEventType type)
type - type of eventFlowableEvent that doesn't have it's execution context-fields filled, as the event is a global event, independent of any running execution.public static FlowableEvent createEvent(FlowableEngineEventType type, String executionId, String processInstanceId, String processDefinitionId)
public static FlowableEntityEvent createEntityEvent(FlowableEngineEventType type, Object entity)
type - type of evententity - the entity this event targetsFlowableEntityEvent. In case an ExecutionContext is active, the execution related event fields will be populated. If not, execution details will be retrieved from the
Object if possible.public static FlowableProcessStartedEvent createProcessStartedEvent(Object entity, Map variables, boolean localScope)
entity - the entity this event targetsvariables - the variables associated with this entityFlowableEntityEvent. In case an ExecutionContext is active, the execution related event fields will be populated. If not, execution details will be retrieved from the
Object if possible.public static FlowableEntityWithVariablesEvent createEntityWithVariablesEvent(FlowableEngineEventType type, Object entity, Map variables, boolean localScope)
type - type of evententity - the entity this event targetsvariables - the variables associated with this entityFlowableEntityEvent. In case an ExecutionContext is active, the execution related event fields will be populated. If not, execution details will be retrieved from the
Object if possible.public static FlowableSequenceFlowTakenEvent createSequenceFlowTakenEvent(FlowableEngineEventType type, String sequenceFlowId, String sourceActivityId, String sourceActivityName, String sourceActivityType, String sourceActivityBehaviorClass, String targetActivityId, String targetActivityName, String targetActivityType, String targetActivityBehaviorClass)
public static FlowableEntityEvent createEntityEvent(FlowableEngineEventType type, Object entity, String executionId, String processInstanceId, String processDefinitionId)
type - type of evententity - the entity this event targetsFlowableEntityEventpublic static FlowableEntityEvent createEntityExceptionEvent(FlowableEngineEventType type, Object entity, Throwable cause)
type - type of evententity - the entity this event targetscause - the cause of the eventFlowableEntityEvent that is also instance of FlowableExceptionEvent. In case an ExecutionContext is active, the execution related event fields will be
populated.public static FlowableEntityEvent createEntityExceptionEvent(FlowableEngineEventType type, Object entity, Throwable cause, String executionId, String processInstanceId, String processDefinitionId)
type - type of evententity - the entity this event targetscause - the cause of the eventFlowableEntityEvent that is also instance of FlowableExceptionEvent.public static FlowableActivityEvent createActivityEvent(FlowableEngineEventType type, String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, String activityType, String behaviourClass)
public static FlowableActivityCancelledEvent createActivityCancelledEvent(String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, String activityType, String behaviourClass, Object cause)
public static FlowableCancelledEvent createCancelledEvent(String executionId, String processInstanceId, String processDefinitionId, Object cause)
public static FlowableSignalEvent createSignalEvent(FlowableEngineEventType type, String activityId, String signalName, Object signalData, String executionId, String processInstanceId, String processDefinitionId)
public static FlowableMessageEvent createMessageEvent(FlowableEngineEventType type, String activityId, String messageName, Object payload, String executionId, String processInstanceId, String processDefinitionId)
public static FlowableErrorEvent createErrorEvent(FlowableEngineEventType type, String activityId, String errorCode, String executionId, String processInstanceId, String processDefinitionId)
public static FlowableVariableEvent createVariableEvent(FlowableEngineEventType type, String variableName, Object variableValue, VariableType variableType, String taskId, String executionId, String processInstanceId, String processDefinitionId)
public static FlowableIdmMembershipEvent createMembershipEvent(FlowableIdmEventType type, String groupId, String userId)
protected static void populateEventWithCurrentContext(ActivitiEventImpl event)
Copyright © 2023 Flowable. All rights reserved.