public class DefaultHistoryEventProducer extends Object implements HistoryEventProducer
Constructor and Description |
---|
DefaultHistoryEventProducer() |
protected void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt, ExecutionEntity execution, String eventType)
protected void initProcessInstanceEvent(HistoricProcessInstanceEventEntity evt, ExecutionEntity execution, String eventType)
protected void initTaskInstanceEvent(HistoricTaskInstanceEventEntity evt, TaskEntity taskEntity, String eventType)
protected void initHistoricVariableUpdateEvt(HistoricVariableUpdateEventEntity evt, VariableInstanceEntity variableInstance, String eventType)
protected HistoryEvent createHistoricVariableEvent(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl, String 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 HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)
protected HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)
protected HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)
public HistoryEvent createProcessInstanceStartEvt(DelegateExecution execution)
HistoryEventProducer
createProcessInstanceStartEvt
in interface HistoryEventProducer
execution
- the current execution.public HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution)
HistoryEventProducer
createProcessInstanceEndEvt
in interface HistoryEventProducer
execution
- the current execution.public HistoryEvent createActivityInstanceStartEvt(DelegateExecution execution)
HistoryEventProducer
createActivityInstanceStartEvt
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 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 createTaskInstanceCompleteEvt(DelegateTask task, String deleteReason)
HistoryEventProducer
createTaskInstanceCompleteEvt
in interface HistoryEventProducer
task
- the taskpublic HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl)
HistoryEventProducer
createHistoricVariableCreateEvt
in interface HistoryEventProducer
variableInstance
- the runtime variable instancepublic HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl)
HistoryEventProducer
createHistoricVariableDeleteEvt
in interface HistoryEventProducer
public HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl)
HistoryEventProducer
createHistoricVariableUpdateEvt
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 propertyCopyright © 2015. All rights reserved.