public class DefaultHistoryEventProducer extends Object implements HistoryEventProducer
Constructor and Description |
---|
DefaultHistoryEventProducer() |
protected void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt, ExecutionEntity execution, HistoryEventType eventType)
protected void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt, MigratingActivityInstance migratingActivityInstance, HistoryEventType eventType)
protected void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt, ExecutionEntity execution, PvmScope eventSource, String activityInstanceId, String parentActivityInstanceId, HistoryEventType eventType)
protected void initProcessInstanceEvent(HistoricProcessInstanceEventEntity evt, ExecutionEntity execution, HistoryEventType eventType)
protected void initTaskInstanceEvent(HistoricTaskInstanceEventEntity evt, TaskEntity taskEntity, HistoryEventType eventType)
protected void initHistoricVariableUpdateEvt(HistoricVariableUpdateEventEntity evt, VariableInstanceEntity variableInstance, HistoryEventType eventType)
protected void initUserOperationLogEvent(UserOperationLogEntryEventEntity evt, UserOperationLogContext context, UserOperationLogContextEntry contextEntry, PropertyChange propertyChange)
protected void initHistoricIncidentEvent(HistoricIncidentEventEntity evt, Incident incident, HistoryEventType eventType)
protected HistoryEvent createHistoricVariableEvent(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope, HistoryEventType eventType)
protected HistoricProcessInstanceEventEntity newProcessInstanceEventEntity(ExecutionEntity execution)
protected HistoricActivityInstanceEventEntity newActivityInstanceEventEntity(ExecutionEntity execution)
protected HistoricTaskInstanceEventEntity newTaskInstanceEventEntity(DelegateTask task)
protected HistoricVariableUpdateEventEntity newVariableUpdateEventEntity(ExecutionEntity execution)
protected HistoricFormPropertyEventEntity newHistoricFormPropertyEvent()
protected HistoricIncidentEventEntity newIncidentEventEntity(Incident incident)
protected HistoricJobLogEventEntity newHistoricJobLogEntity(Job job)
protected HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)
protected HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)
protected HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)
protected HistoricIncidentEventEntity loadIncidentEvent(Incident incident)
public HistoryEvent createProcessInstanceStartEvt(DelegateExecution execution)
HistoryEventProducer
createProcessInstanceStartEvt
in interface HistoryEventProducer
execution
- the current execution.public HistoryEvent createProcessInstanceUpdateEvt(DelegateExecution execution)
HistoryEventProducer
createProcessInstanceUpdateEvt
in interface HistoryEventProducer
execution
- the process instancepublic HistoryEvent createProcessInstanceMigrateEvt(DelegateExecution execution)
HistoryEventProducer
createProcessInstanceMigrateEvt
in interface HistoryEventProducer
execution
- the process instancepublic HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution)
HistoryEventProducer
createProcessInstanceEndEvt
in interface HistoryEventProducer
execution
- the current execution.protected void determineEndState(ExecutionEntity executionEntity, HistoricProcessInstanceEventEntity evt)
public HistoryEvent createActivityInstanceStartEvt(DelegateExecution execution)
HistoryEventProducer
createActivityInstanceStartEvt
in interface HistoryEventProducer
execution
- the current execution.public HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution)
HistoryEventProducer
createActivityInstanceUpdateEvt
in interface HistoryEventProducer
execution
- the current execution.public HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution, DelegateTask task)
HistoryEventProducer
createActivityInstanceUpdateEvt
in interface HistoryEventProducer
execution
- the current execution.task
- the task association that is currently updated. (May be null in case there is not task associated.)public HistoryEvent createActivityInstanceMigrateEvt(MigratingActivityInstance actInstance)
HistoryEventProducer
createActivityInstanceMigrateEvt
in interface HistoryEventProducer
actInstance
- the migrated activity instance which contains the new id'spublic HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution)
HistoryEventProducer
createActivityInstanceEndEvt
in interface HistoryEventProducer
execution
- the current execution.public HistoryEvent createTaskInstanceCreateEvt(DelegateTask task)
HistoryEventProducer
createTaskInstanceCreateEvt
in interface HistoryEventProducer
task
- the taskpublic HistoryEvent createTaskInstanceUpdateEvt(DelegateTask task)
HistoryEventProducer
createTaskInstanceUpdateEvt
in interface HistoryEventProducer
task
- the taskpublic HistoryEvent createTaskInstanceMigrateEvt(DelegateTask task)
HistoryEventProducer
createTaskInstanceMigrateEvt
in interface HistoryEventProducer
task
- the taskpublic HistoryEvent createTaskInstanceCompleteEvt(DelegateTask task, String deleteReason)
HistoryEventProducer
createTaskInstanceCompleteEvt
in interface HistoryEventProducer
task
- the taskpublic List<HistoryEvent> createUserOperationLogEvents(UserOperationLogContext context)
HistoryEventProducer
createUserOperationLogEvents
in interface HistoryEventProducer
context
- the UserOperationLogContext
providing the needed informationsList
of HistoryEvent
spublic HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope)
HistoryEventProducer
createHistoricVariableCreateEvt
in interface HistoryEventProducer
variableInstance
- the runtime variable instancepublic HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope)
HistoryEventProducer
createHistoricVariableDeleteEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope)
HistoryEventProducer
createHistoricVariableUpdateEvt
in interface HistoryEventProducer
variableInstance
- the runtime variable instancepublic HistoryEvent createHistoricVariableMigrateEvt(VariableInstanceEntity variableInstance)
HistoryEventProducer
createHistoricVariableMigrateEvt
in interface HistoryEventProducer
variableInstance
- the runtime variable instancepublic HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution, String propertyId, String propertyValue, String taskId)
HistoryEventProducer
createFormPropertyUpdateEvt
in interface HistoryEventProducer
propertyId
- the id of the form propertypropertyValue
- the value of the form propertypublic HistoryEvent createHistoricIncidentCreateEvt(Incident incident)
createHistoricIncidentCreateEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricIncidentResolveEvt(Incident incident)
createHistoricIncidentResolveEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricIncidentDeleteEvt(Incident incident)
createHistoricIncidentDeleteEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricIncidentMigrateEvt(Incident incident)
createHistoricIncidentMigrateEvt
in interface HistoryEventProducer
protected HistoryEvent createHistoricIncidentEvt(Incident incident, HistoryEventTypes eventType)
public HistoryEvent createHistoricIdentityLinkAddEvent(IdentityLink identityLink)
HistoryEventProducer
createHistoricIdentityLinkAddEvent
in interface HistoryEventProducer
public HistoryEvent createHistoricIdentityLinkDeleteEvent(IdentityLink identityLink)
HistoryEventProducer
createHistoricIdentityLinkDeleteEvent
in interface HistoryEventProducer
protected HistoryEvent createHistoricIdentityLinkEvt(IdentityLink identityLink, HistoryEventTypes eventType)
protected HistoricIdentityLinkLogEventEntity newIdentityLinkEventEntity()
protected void initHistoricIdentityLinkEvent(HistoricIdentityLinkLogEventEntity evt, IdentityLink identityLink, HistoryEventType eventType)
public HistoryEvent createBatchStartEvent(Batch batch)
HistoryEventProducer
createBatchStartEvent
in interface HistoryEventProducer
public HistoryEvent createBatchEndEvent(Batch batch)
HistoryEventProducer
createBatchEndEvent
in interface HistoryEventProducer
protected HistoryEvent createBatchEvent(BatchEntity batch, HistoryEventTypes eventType)
public HistoryEvent createHistoricJobLogCreateEvt(Job job)
HistoryEventProducer
createHistoricJobLogCreateEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception)
HistoryEventProducer
createHistoricJobLogFailedEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricJobLogSuccessfulEvt(Job job)
HistoryEventProducer
createHistoricJobLogSuccessfulEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricJobLogDeleteEvt(Job job)
HistoryEventProducer
createHistoricJobLogDeleteEvt
in interface HistoryEventProducer
protected HistoryEvent createHistoricJobLogEvt(Job job, HistoryEventType eventType)
protected void initHistoricJobLogEvent(HistoricJobLogEventEntity evt, Job job, HistoryEventType eventType)
public HistoryEvent createHistoricExternalTaskLogCreatedEvt(ExternalTask task)
HistoryEventProducer
createHistoricExternalTaskLogCreatedEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricExternalTaskLogFailedEvt(ExternalTask task)
HistoryEventProducer
createHistoricExternalTaskLogFailedEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricExternalTaskLogSuccessfulEvt(ExternalTask task)
HistoryEventProducer
createHistoricExternalTaskLogSuccessfulEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricExternalTaskLogDeletedEvt(ExternalTask task)
HistoryEventProducer
createHistoricExternalTaskLogDeletedEvt
in interface HistoryEventProducer
protected HistoricExternalTaskLogEntity initHistoricExternalTaskLog(ExternalTaskEntity entity, ExternalTaskState state)
protected void initSequenceCounter(ExecutionEntity execution, HistoryEvent event)
protected void initSequenceCounter(VariableInstanceEntity variable, HistoryEvent event)
protected void initSequenceCounter(JobEntity job, HistoryEvent event)
protected void initSequenceCounter(long sequenceCounter, HistoryEvent event)
Copyright © 2019. All rights reserved.