public class ActivitiEventBuilder extends Object
FlowableEvent implementations.| Constructor and Description |
|---|
ActivitiEventBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static FlowableActivityCancelledEvent |
createActivityCancelledEvent(String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
String activityType,
String behaviourClass,
Object cause) |
static FlowableActivityEvent |
createActivityEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
String activityType,
String behaviourClass) |
static FlowableCancelledEvent |
createCancelledEvent(String executionId,
String processInstanceId,
String processDefinitionId,
Object cause) |
static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent |
createEntityEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
Object entity) |
static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent |
createEntityEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
Object entity,
String executionId,
String processInstanceId,
String processDefinitionId) |
static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent |
createEntityExceptionEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
Object entity,
Throwable cause) |
static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent |
createEntityExceptionEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
Object entity,
Throwable cause,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableEntityWithVariablesEvent |
createEntityWithVariablesEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
Object entity,
Map variables,
boolean localScope) |
static FlowableErrorEvent |
createErrorEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String activityId,
String errorCode,
String executionId,
String processInstanceId,
String processDefinitionId) |
static org.flowable.common.engine.api.delegate.event.FlowableEvent |
createEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String executionId,
String processInstanceId,
String processDefinitionId) |
static org.flowable.common.engine.api.delegate.event.FlowableEvent |
createGlobalEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type) |
static org.flowable.idm.api.event.FlowableIdmMembershipEvent |
createMembershipEvent(org.flowable.idm.api.event.FlowableIdmEventType type,
String groupId,
String userId) |
static FlowableMessageEvent |
createMessageEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String activityId,
String messageName,
Object payload,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableProcessStartedEvent |
createProcessStartedEvent(Object entity,
Map variables,
boolean localScope) |
static FlowableSequenceFlowTakenEvent |
createSequenceFlowTakenEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String sequenceFlowId,
String sourceActivityId,
String sourceActivityName,
String sourceActivityType,
String sourceActivityBehaviorClass,
String targetActivityId,
String targetActivityName,
String targetActivityType,
String targetActivityBehaviorClass) |
static FlowableSignalEvent |
createSignalEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String activityId,
String signalName,
Object signalData,
String executionId,
String processInstanceId,
String processDefinitionId) |
static org.flowable.variable.api.event.FlowableVariableEvent |
createVariableEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String variableName,
Object variableValue,
org.flowable.variable.api.types.VariableType variableType,
String taskId,
String executionId,
String processInstanceId,
String processDefinitionId) |
protected static void |
populateEventWithCurrentContext(ActivitiEventImpl event) |
public static org.flowable.common.engine.api.delegate.event.FlowableEvent createGlobalEvent(org.flowable.common.engine.api.delegate.event.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 org.flowable.common.engine.api.delegate.event.FlowableEvent createEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String executionId,
String processInstanceId,
String processDefinitionId)
public static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent createEntityEvent(org.flowable.common.engine.api.delegate.event.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(org.flowable.common.engine.api.delegate.event.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(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type, String sequenceFlowId, String sourceActivityId, String sourceActivityName, String sourceActivityType, String sourceActivityBehaviorClass, String targetActivityId, String targetActivityName, String targetActivityType, String targetActivityBehaviorClass)
public static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent createEntityEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
Object entity,
String executionId,
String processInstanceId,
String processDefinitionId)
type - type of evententity - the entity this event targetsFlowableEntityEventpublic static org.flowable.common.engine.api.delegate.event.FlowableEntityEvent createEntityExceptionEvent(org.flowable.common.engine.api.delegate.event.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 org.flowable.common.engine.api.delegate.event.FlowableEntityEvent createEntityExceptionEvent(org.flowable.common.engine.api.delegate.event.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(org.flowable.common.engine.api.delegate.event.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(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type, String activityId, String signalName, Object signalData, String executionId, String processInstanceId, String processDefinitionId)
public static FlowableMessageEvent createMessageEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type, String activityId, String messageName, Object payload, String executionId, String processInstanceId, String processDefinitionId)
public static FlowableErrorEvent createErrorEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type, String activityId, String errorCode, String executionId, String processInstanceId, String processDefinitionId)
public static org.flowable.variable.api.event.FlowableVariableEvent createVariableEvent(org.flowable.common.engine.api.delegate.event.FlowableEngineEventType type,
String variableName,
Object variableValue,
org.flowable.variable.api.types.VariableType variableType,
String taskId,
String executionId,
String processInstanceId,
String processDefinitionId)
public static org.flowable.idm.api.event.FlowableIdmMembershipEvent createMembershipEvent(org.flowable.idm.api.event.FlowableIdmEventType type,
String groupId,
String userId)
protected static void populateEventWithCurrentContext(ActivitiEventImpl event)
Copyright © 2018 Flowable. All rights reserved.