public class ActivitiEventBuilder extends Object
ActivitiEvent
implementations.Constructor and Description |
---|
ActivitiEventBuilder() |
Modifier and Type | Method and Description |
---|---|
static ActivitiActivityCancelledEvent |
createActivityCancelledEvent(String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
String activityType,
Object cause) |
static ActivitiActivityEvent |
createActivityEvent(ActivitiEventType type,
String activityId,
String activityName,
String executionId,
String processInstanceId,
String processDefinitionId,
org.activiti.bpmn.model.FlowElement flowElement) |
static ActivitiCancelledEvent |
createCancelledEvent(String executionId,
String processInstanceId,
String processDefinitionId,
Object cause) |
static ActivitiEntityEvent |
createEntityEvent(ActivitiEventType type,
Object entity) |
static ActivitiEntityEvent |
createEntityEvent(ActivitiEventType type,
Object entity,
String executionId,
String processInstanceId,
String processDefinitionId) |
static ActivitiEntityEvent |
createEntityExceptionEvent(ActivitiEventType type,
Object entity,
Throwable cause) |
static ActivitiEntityEvent |
createEntityExceptionEvent(ActivitiEventType type,
Object entity,
Throwable cause,
String executionId,
String processInstanceId,
String processDefinitionId) |
static ActivitiEntityWithVariablesEvent |
createEntityWithVariablesEvent(ActivitiEventType type,
Object entity,
Map variables,
boolean localScope) |
static ActivitiErrorEvent |
createErrorEvent(ActivitiEventType type,
String activityId,
String errorId,
String errorCode,
String executionId,
String processInstanceId,
String processDefinitionId) |
static ActivitiEvent |
createEvent(ActivitiEventType type,
String executionId,
String processInstanceId,
String processDefinitionId) |
static ActivitiEvent |
createGlobalEvent(ActivitiEventType type) |
static ActivitiMembershipEvent |
createMembershipEvent(ActivitiEventType type,
String groupId,
String userId) |
static ActivitiMessageEvent |
createMessageEvent(ActivitiEventType type,
String activityId,
String messageName,
Object payload,
String executionId,
String processInstanceId,
String processDefinitionId) |
static ActivitiProcessStartedEvent |
createProcessStartedEvent(Object entity,
Map variables,
boolean localScope) |
static ActivitiSequenceFlowTakenEvent |
createSequenceFlowTakenEvent(org.activiti.engine.impl.persistence.entity.ExecutionEntity executionEntity,
ActivitiEventType type,
String sequenceFlowId,
String sourceActivityId,
String sourceActivityName,
String sourceActivityType,
Object sourceActivityBehavior,
String targetActivityId,
String targetActivityName,
String targetActivityType,
Object targetActivityBehavior) |
static ActivitiSignalEvent |
createSignalEvent(ActivitiEventType type,
String activityId,
String signalName,
Object signalData,
String executionId,
String processInstanceId,
String processDefinitionId) |
static ActivitiVariableEvent |
createVariableEvent(ActivitiEventType type,
String variableName,
Object variableValue,
org.activiti.engine.impl.variable.VariableType variableType,
String taskId,
String executionId,
String processInstanceId,
String processDefinitionId) |
protected static String |
parseActivityType(org.activiti.bpmn.model.FlowNode flowNode) |
protected static void |
populateEventWithCurrentContext(ActivitiEventImpl event) |
public static ActivitiEvent createGlobalEvent(ActivitiEventType type)
type
- type of eventActivitiEvent
that doesn't have it's execution context-fields filled, as the event is a global event, independent of any running execution.public static ActivitiEvent createEvent(ActivitiEventType type, String executionId, String processInstanceId, String processDefinitionId)
public static ActivitiEntityEvent createEntityEvent(ActivitiEventType type, Object entity)
type
- type of evententity
- the entity this event targetsActivitiEntityEvent
. 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 ActivitiProcessStartedEvent createProcessStartedEvent(Object entity, Map variables, boolean localScope)
entity
- the entity this event targetsvariables
- the variables associated with this entityActivitiEntityEvent
. In case an ExecutionContext
is active, the execution related
event fields will be populated. If not, execution details will be reteived from the Object
if
possible.public static ActivitiEntityWithVariablesEvent createEntityWithVariablesEvent(ActivitiEventType type, Object entity, Map variables, boolean localScope)
type
- type of evententity
- the entity this event targetsvariables
- the variables associated with this entityActivitiEntityEvent
. 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 ActivitiSequenceFlowTakenEvent createSequenceFlowTakenEvent(org.activiti.engine.impl.persistence.entity.ExecutionEntity executionEntity, ActivitiEventType type, String sequenceFlowId, String sourceActivityId, String sourceActivityName, String sourceActivityType, Object sourceActivityBehavior, String targetActivityId, String targetActivityName, String targetActivityType, Object targetActivityBehavior)
public static ActivitiEntityEvent createEntityEvent(ActivitiEventType type, Object entity, String executionId, String processInstanceId, String processDefinitionId)
type
- type of evententity
- the entity this event targetsActivitiEntityEvent
public static ActivitiEntityEvent createEntityExceptionEvent(ActivitiEventType type, Object entity, Throwable cause)
type
- type of evententity
- the entity this event targetscause
- the cause of the eventActivitiEntityEvent
that is also instance of ActivitiExceptionEvent
. In case an ExecutionContext
is active, the execution related event fields will be
populated.public static ActivitiEntityEvent createEntityExceptionEvent(ActivitiEventType type, Object entity, Throwable cause, String executionId, String processInstanceId, String processDefinitionId)
type
- type of evententity
- the entity this event targetscause
- the cause of the eventActivitiEntityEvent
that is also instance of ActivitiExceptionEvent
.public static ActivitiActivityEvent createActivityEvent(ActivitiEventType type, String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, org.activiti.bpmn.model.FlowElement flowElement)
protected static String parseActivityType(org.activiti.bpmn.model.FlowNode flowNode)
public static ActivitiActivityCancelledEvent createActivityCancelledEvent(String activityId, String activityName, String executionId, String processInstanceId, String processDefinitionId, String activityType, Object cause)
public static ActivitiCancelledEvent createCancelledEvent(String executionId, String processInstanceId, String processDefinitionId, Object cause)
public static ActivitiSignalEvent createSignalEvent(ActivitiEventType type, String activityId, String signalName, Object signalData, String executionId, String processInstanceId, String processDefinitionId)
public static ActivitiMessageEvent createMessageEvent(ActivitiEventType type, String activityId, String messageName, Object payload, String executionId, String processInstanceId, String processDefinitionId)
public static ActivitiErrorEvent createErrorEvent(ActivitiEventType type, String activityId, String errorId, String errorCode, String executionId, String processInstanceId, String processDefinitionId)
public static ActivitiVariableEvent createVariableEvent(ActivitiEventType type, String variableName, Object variableValue, org.activiti.engine.impl.variable.VariableType variableType, String taskId, String executionId, String processInstanceId, String processDefinitionId)
public static ActivitiMembershipEvent createMembershipEvent(ActivitiEventType type, String groupId, String userId)
protected static void populateEventWithCurrentContext(ActivitiEventImpl event)
Copyright © 2017 Alfresco. All rights reserved.