public class FlowableEventBuilder extends Object
FlowableEvent implementations.| Constructor and Description |
|---|
FlowableEventBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static FlowableActivityCancelledEvent |
createActivityCancelledEvent(String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
String activityType,
Object cause) |
static FlowableActivityEvent |
createActivityEvent(FlowableEngineEventType type,
String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
org.flowable.bpmn.model.FlowElement flowElement) |
static FlowableCancelledEvent |
createCancelledEvent(String executionId,
String processInstanceId,
String processDefinitionId,
Object cause) |
static FlowableEntityEvent |
createEntityEvent(FlowableEngineEventType type,
Object entity) |
static FlowableEntityEvent |
createEntityEvent(FlowableEngineEventType type,
Object entity,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableEntityEvent |
createEntityExceptionEvent(FlowableEngineEventType type,
Object entity,
Throwable cause) |
static FlowableEntityEvent |
createEntityExceptionEvent(FlowableEngineEventType type,
Object entity,
Throwable cause,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableEntityWithVariablesEvent |
createEntityWithVariablesEvent(FlowableEngineEventType type,
Object entity,
Map variables,
boolean localScope) |
static FlowableErrorEvent |
createErrorEvent(FlowableEngineEventType type,
String activityId,
String errorId,
String errorCode,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableEvent |
createEvent(FlowableEngineEventType type,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableEvent |
createGlobalEvent(FlowableEngineEventType type) |
static FlowableJobRescheduledEvent |
createJobRescheduledEvent(FlowableEngineEventType type,
org.flowable.job.api.Job newJob,
String originalJobId) |
static FlowableMessageEvent |
createMessageEvent(FlowableEngineEventType type,
String activityId,
String messageName,
Object payload,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableMultiInstanceActivityCancelledEvent |
createMultiInstanceActivityCancelledEvent(String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
String activityType,
Object cause) |
static FlowableMultiInstanceActivityCompletedEvent |
createMultiInstanceActivityCompletedEvent(FlowableEngineEventType type,
int numberOfInstances,
int numberOfActiveInstances,
int numberOfCompletedInstances,
String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
org.flowable.bpmn.model.FlowElement flowElement) |
static FlowableMultiInstanceActivityEvent |
createMultiInstanceActivityEvent(FlowableEngineEventType type,
String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
org.flowable.bpmn.model.FlowElement flowElement) |
static FlowableProcessStartedEvent |
createProcessStartedEvent(Object entity,
Map variables,
boolean localScope) |
static FlowableSequenceFlowTakenEvent |
createSequenceFlowTakenEvent(ExecutionEntity executionEntity,
FlowableEngineEventType type,
String sequenceFlowId,
String sourceActivityId,
String sourceActivityName,
String sourceActivityType,
Object sourceActivityBehavior,
String targetActivityId,
String targetActivityName,
String targetActivityType,
Object targetActivityBehavior) |
static FlowableSignalEvent |
createSignalEvent(FlowableEngineEventType type,
String activityId,
String signalName,
Object signalData,
String executionId,
String processInstanceId,
String processDefinitionId) |
static FlowableProcessTerminatedEvent |
createTerminateEvent(ExecutionEntity execution,
Object cause) |
static org.flowable.variable.api.event.FlowableVariableEvent |
createVariableEvent(FlowableEngineEventType type,
String variableName,
Object variableValue,
org.flowable.variable.api.types.VariableType variableType,
String taskId,
String executionId,
String processInstanceId,
String processDefinitionId) |
protected static String |
parseActivityType(org.flowable.bpmn.model.FlowNode flowNode) |
protected static void |
populateEventWithCurrentContext(FlowableEventImpl event) |
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 FlowableJobRescheduledEvent createJobRescheduledEvent(FlowableEngineEventType type, org.flowable.job.api.Job newJob, String originalJobId)
type - type of eventnewJob - the new job that was created due to the rescheduleoriginalJobId - the job id of the original job that was rescheduledFlowableEntityEvent. 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(ExecutionEntity executionEntity, FlowableEngineEventType type, String sequenceFlowId, String sourceActivityId, String sourceActivityName, String sourceActivityType, Object sourceActivityBehavior, String targetActivityId, String targetActivityName, String targetActivityType, Object targetActivityBehavior)
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, org.flowable.bpmn.model.FlowElement flowElement)
public static FlowableMultiInstanceActivityEvent createMultiInstanceActivityEvent(FlowableEngineEventType type, String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, org.flowable.bpmn.model.FlowElement flowElement)
public static FlowableMultiInstanceActivityCompletedEvent createMultiInstanceActivityCompletedEvent(FlowableEngineEventType type, int numberOfInstances, int numberOfActiveInstances, int numberOfCompletedInstances, String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, org.flowable.bpmn.model.FlowElement flowElement)
protected static String parseActivityType(org.flowable.bpmn.model.FlowNode flowNode)
public static FlowableActivityCancelledEvent createActivityCancelledEvent(String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, String activityType, Object cause)
public static FlowableMultiInstanceActivityCancelledEvent createMultiInstanceActivityCancelledEvent(String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, String activityType, Object cause)
public static FlowableCancelledEvent createCancelledEvent(String executionId, String processInstanceId, String processDefinitionId, Object cause)
public static FlowableProcessTerminatedEvent createTerminateEvent(ExecutionEntity execution, 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 errorId, String errorCode, String executionId, String processInstanceId, String processDefinitionId)
public static org.flowable.variable.api.event.FlowableVariableEvent createVariableEvent(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(FlowableEventImpl event)
Copyright © 2017 Flowable. All rights reserved.