public class ActivitiEventBuilder extends Object
ActivitiEvent implementations.| Constructor and Description |
|---|
ActivitiEventBuilder() |
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, independant 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 reteived from the Object if possible.public static ActivitiEntityEvent createEntityEvent(ActivitiEventType type, Object entity, String executionId, String processInstanceId, String processDefinitionId)
type - type of evententity - the entity this event targetsActivitiEntityEventpublic 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 executionId, String processInstanceId, String processDefinitionId)
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 errorCode, String executionId, String processInstanceId, String processDefinitionId)
public static ActivitiVariableEvent createVariableEvent(ActivitiEventType type, String variableName, Object variableValue, 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 © 2014 Alfresco. All rights reserved.