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 HistoricBatchEntity newBatchEventEntity(BatchEntity batch)
protected HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)
protected HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)
protected HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)
protected HistoricIncidentEventEntity loadIncidentEvent(Incident incident)
protected HistoricBatchEntity loadBatchEntity(BatchEntity batch)
public HistoryEvent createProcessInstanceStartEvt(DelegateExecution execution)
HistoryEventProducercreateProcessInstanceStartEvt in interface HistoryEventProducerexecution - the current execution.public HistoryEvent createProcessInstanceUpdateEvt(DelegateExecution execution)
HistoryEventProducercreateProcessInstanceUpdateEvt in interface HistoryEventProducerexecution - the process instancepublic HistoryEvent createProcessInstanceMigrateEvt(DelegateExecution execution)
HistoryEventProducercreateProcessInstanceMigrateEvt in interface HistoryEventProducerexecution - the process instancepublic HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution)
HistoryEventProducercreateProcessInstanceEndEvt in interface HistoryEventProducerexecution - the current execution.protected void addRemovalTimeToHistoricDecisions(String rootProcessInstanceId, Date removalTime)
protected void addRemovalTimeToHistoricProcessInstances(String rootProcessInstanceId, Date removalTime)
protected boolean isDmnEnabled()
protected void determineEndState(ExecutionEntity executionEntity, HistoricProcessInstanceEventEntity evt)
public HistoryEvent createActivityInstanceStartEvt(DelegateExecution execution)
HistoryEventProducercreateActivityInstanceStartEvt in interface HistoryEventProducerexecution - the current execution.public HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution)
HistoryEventProducercreateActivityInstanceUpdateEvt in interface HistoryEventProducerexecution - the current execution.public HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution, DelegateTask task)
HistoryEventProducercreateActivityInstanceUpdateEvt in interface HistoryEventProducerexecution - 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)
HistoryEventProducercreateActivityInstanceMigrateEvt in interface HistoryEventProduceractInstance - the migrated activity instance which contains the new id'spublic HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution)
HistoryEventProducercreateActivityInstanceEndEvt in interface HistoryEventProducerexecution - the current execution.public HistoryEvent createTaskInstanceCreateEvt(DelegateTask task)
HistoryEventProducercreateTaskInstanceCreateEvt in interface HistoryEventProducertask - the taskpublic HistoryEvent createTaskInstanceUpdateEvt(DelegateTask task)
HistoryEventProducercreateTaskInstanceUpdateEvt in interface HistoryEventProducertask - the taskpublic HistoryEvent createTaskInstanceMigrateEvt(DelegateTask task)
HistoryEventProducercreateTaskInstanceMigrateEvt in interface HistoryEventProducertask - the taskpublic HistoryEvent createTaskInstanceCompleteEvt(DelegateTask task, String deleteReason)
HistoryEventProducercreateTaskInstanceCompleteEvt in interface HistoryEventProducertask - the taskpublic List<HistoryEvent> createUserOperationLogEvents(UserOperationLogContext context)
HistoryEventProducercreateUserOperationLogEvents in interface HistoryEventProducercontext - the UserOperationLogContext providing the needed informationsList of HistoryEventspublic HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope)
HistoryEventProducercreateHistoricVariableCreateEvt in interface HistoryEventProducervariableInstance - the runtime variable instancepublic HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope)
HistoryEventProducercreateHistoricVariableDeleteEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope)
HistoryEventProducercreateHistoricVariableUpdateEvt in interface HistoryEventProducervariableInstance - the runtime variable instancepublic HistoryEvent createHistoricVariableMigrateEvt(VariableInstanceEntity variableInstance)
HistoryEventProducercreateHistoricVariableMigrateEvt in interface HistoryEventProducervariableInstance - the runtime variable instancepublic HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution, String propertyId, String propertyValue, String taskId)
HistoryEventProducercreateFormPropertyUpdateEvt in interface HistoryEventProducerpropertyId - the id of the form propertypropertyValue - the value of the form propertypublic HistoryEvent createHistoricIncidentCreateEvt(Incident incident)
createHistoricIncidentCreateEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricIncidentResolveEvt(Incident incident)
createHistoricIncidentResolveEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricIncidentDeleteEvt(Incident incident)
createHistoricIncidentDeleteEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricIncidentMigrateEvt(Incident incident)
createHistoricIncidentMigrateEvt in interface HistoryEventProducerprotected HistoryEvent createHistoricIncidentEvt(Incident incident, HistoryEventTypes eventType)
public HistoryEvent createHistoricIdentityLinkAddEvent(IdentityLink identityLink)
HistoryEventProducercreateHistoricIdentityLinkAddEvent in interface HistoryEventProducerpublic HistoryEvent createHistoricIdentityLinkDeleteEvent(IdentityLink identityLink)
HistoryEventProducercreateHistoricIdentityLinkDeleteEvent in interface HistoryEventProducerprotected HistoryEvent createHistoricIdentityLinkEvt(IdentityLink identityLink, HistoryEventTypes eventType)
protected HistoricIdentityLinkLogEventEntity newIdentityLinkEventEntity()
protected void initHistoricIdentityLinkEvent(HistoricIdentityLinkLogEventEntity evt, IdentityLink identityLink, HistoryEventType eventType)
public HistoryEvent createBatchStartEvent(Batch batch)
HistoryEventProducercreateBatchStartEvent in interface HistoryEventProducerpublic HistoryEvent createBatchEndEvent(Batch batch)
HistoryEventProducercreateBatchEndEvent in interface HistoryEventProducerprotected HistoryEvent createBatchEvent(BatchEntity batch, HistoryEventTypes eventType)
public HistoryEvent createHistoricJobLogCreateEvt(Job job)
HistoryEventProducercreateHistoricJobLogCreateEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricJobLogFailedEvt(Job job, Throwable exception)
HistoryEventProducercreateHistoricJobLogFailedEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricJobLogSuccessfulEvt(Job job)
HistoryEventProducercreateHistoricJobLogSuccessfulEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricJobLogDeleteEvt(Job job)
HistoryEventProducercreateHistoricJobLogDeleteEvt in interface HistoryEventProducerprotected HistoryEvent createHistoricJobLogEvt(Job job, HistoryEventType eventType)
protected void initHistoricJobLogEvent(HistoricJobLogEventEntity evt, Job job, HistoryEventType eventType)
public HistoryEvent createHistoricExternalTaskLogCreatedEvt(ExternalTask task)
HistoryEventProducercreateHistoricExternalTaskLogCreatedEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricExternalTaskLogFailedEvt(ExternalTask task)
HistoryEventProducercreateHistoricExternalTaskLogFailedEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricExternalTaskLogSuccessfulEvt(ExternalTask task)
HistoryEventProducercreateHistoricExternalTaskLogSuccessfulEvt in interface HistoryEventProducerpublic HistoryEvent createHistoricExternalTaskLogDeletedEvt(ExternalTask task)
HistoryEventProducercreateHistoricExternalTaskLogDeletedEvt in interface HistoryEventProducerprotected HistoricExternalTaskLogEntity initHistoricExternalTaskLog(ExternalTaskEntity entity, ExternalTaskState state)
protected boolean isRootProcessInstance(HistoricProcessInstanceEventEntity evt)
protected boolean isHistoryRemovalTimeStrategyStart()
protected boolean isHistoryRemovalTimeStrategyEnd()
protected String getHistoryRemovalTimeStrategy()
protected Date calculateRemovalTime(HistoryEvent historyEvent)
protected Date calculateRemovalTime(HistoricBatchEntity historicBatch)
protected void provideRemovalTime(HistoricBatchEntity historicBatch)
protected void provideRemovalTime(HistoryEvent historyEvent)
protected HistoricProcessInstanceEventEntity getHistoricRootProcessInstance(String rootProcessInstanceId)
protected ProcessDefinition findProcessDefinitionById(String processDefinitionId)
protected HistoricBatchEntity getHistoricBatchById(String batchId)
protected HistoricBatchEntity getHistoricBatchByJobId(String jobId)
protected void addRemovalTimeToHistoricJobLog(HistoricBatchEntity historicBatch)
protected void addRemovalTimeToHistoricIncidents(HistoricBatchEntity historicBatch)
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 © 2013–2019 camunda services GmbH. All rights reserved.