org.camunda.bpm.engine.impl.history.producer
Class DefaultHistoryEventProducer

java.lang.Object
  extended by org.camunda.bpm.engine.impl.history.producer.DefaultHistoryEventProducer
All Implemented Interfaces:
HistoryEventProducer
Direct Known Subclasses:
CacheAwareHistoryEventProducer

public class DefaultHistoryEventProducer
extends Object
implements HistoryEventProducer

Author:
Daniel Meyer

Constructor Summary
DefaultHistoryEventProducer()
           
 
Method Summary
 HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution)
          Creates the history event fired when an activity instances is ended.
 HistoryEvent createActivityInstanceStartEvt(DelegateExecution execution)
          Creates the history event fired when an activity instances is started.
 HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution, DelegateTask task)
          Creates the history event fired when an activity instances is updated.
 HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution, String propertyId, Object propertyValue, String taskId)
          Creates the history event fired when a form property is updated.
 HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl)
          Creates the history event fired when a variable is created.
 HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl)
          Creates the history event fired when a variable is deleted.
protected  HistoryEvent createHistoricVariableEvent(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl, String eventType)
           
 HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance, VariableScopeImpl variableScopeImpl)
          Creates the history event fired when a variable is updated.
 HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution)
          Creates the history event fired when a process instances is ended.
 HistoryEvent createProcessInstanceStartEvt(DelegateExecution execution)
          Creates the history event fired when an activity instances is created.
 HistoryEvent createTaskInstanceCompleteEvt(DelegateTask task, String deleteReason)
          Creates the history event fired when a task instances is completed.
 HistoryEvent createTaskInstanceCreateEvt(DelegateTask task)
          Creates the history event fired when a task instances is created.
 HistoryEvent createTaskInstanceUpdateEvt(DelegateTask task)
          Creates the history event fired when a task instances is updated.
protected  void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt, ExecutionEntity execution, String eventType)
           
protected  void initHistoricVariableUpdateEvt(HistoricVariableUpdateEventEntity evt, VariableInstanceEntity variableInstance, String eventType)
           
protected  void initProcessInstanceEvent(HistoricProcessInstanceEventEntity evt, ExecutionEntity execution, String eventType)
           
protected  void initTaskInstanceEvent(HistoricTaskInstanceEventEntity evt, TaskEntity taskEntity, String eventType)
           
protected  HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)
           
protected  HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)
           
protected  HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)
           
protected  HistoricActivityInstanceEventEntity newActivityInstanceEventEntity(ExecutionEntity execution)
           
protected  HistoricFormPropertyEventEntity newHistoricFormPropertyEvent()
           
protected  HistoricProcessInstanceEventEntity newProcessInstanceEventEntity(ExecutionEntity execution)
           
protected  HistoricTaskInstanceEventEntity newTaskInstanceEventEntity(DelegateTask task)
           
protected  HistoricVariableUpdateEventEntity newVariableUpdateEventEntity(ExecutionEntity execution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHistoryEventProducer

public DefaultHistoryEventProducer()
Method Detail

initActivityInstanceEvent

protected void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt,
                                         ExecutionEntity execution,
                                         String eventType)

initProcessInstanceEvent

protected void initProcessInstanceEvent(HistoricProcessInstanceEventEntity evt,
                                        ExecutionEntity execution,
                                        String eventType)

initTaskInstanceEvent

protected void initTaskInstanceEvent(HistoricTaskInstanceEventEntity evt,
                                     TaskEntity taskEntity,
                                     String eventType)

initHistoricVariableUpdateEvt

protected void initHistoricVariableUpdateEvt(HistoricVariableUpdateEventEntity evt,
                                             VariableInstanceEntity variableInstance,
                                             String eventType)

createHistoricVariableEvent

protected HistoryEvent createHistoricVariableEvent(VariableInstanceEntity variableInstance,
                                                   VariableScopeImpl variableScopeImpl,
                                                   String eventType)

newProcessInstanceEventEntity

protected HistoricProcessInstanceEventEntity newProcessInstanceEventEntity(ExecutionEntity execution)

newActivityInstanceEventEntity

protected HistoricActivityInstanceEventEntity newActivityInstanceEventEntity(ExecutionEntity execution)

newTaskInstanceEventEntity

protected HistoricTaskInstanceEventEntity newTaskInstanceEventEntity(DelegateTask task)

newVariableUpdateEventEntity

protected HistoricVariableUpdateEventEntity newVariableUpdateEventEntity(ExecutionEntity execution)

newHistoricFormPropertyEvent

protected HistoricFormPropertyEventEntity newHistoricFormPropertyEvent()

loadProcessInstanceEventEntity

protected HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)

loadActivityInstanceEventEntity

protected HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)

loadTaskInstanceEvent

protected HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)

createProcessInstanceStartEvt

public HistoryEvent createProcessInstanceStartEvt(DelegateExecution execution)
Description copied from interface: HistoryEventProducer
Creates the history event fired when an activity instances is created.

Specified by:
createProcessInstanceStartEvt in interface HistoryEventProducer
Parameters:
execution - the current execution.
Returns:
the history event

createProcessInstanceEndEvt

public HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a process instances is ended.

Specified by:
createProcessInstanceEndEvt in interface HistoryEventProducer
Parameters:
execution - the current execution.
Returns:
the history event

createActivityInstanceStartEvt

public HistoryEvent createActivityInstanceStartEvt(DelegateExecution execution)
Description copied from interface: HistoryEventProducer
Creates the history event fired when an activity instances is started.

Specified by:
createActivityInstanceStartEvt in interface HistoryEventProducer
Parameters:
execution - the current execution.
Returns:
the history event

createActivityInstanceUpdateEvt

public HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution,
                                                    DelegateTask task)
Description copied from interface: HistoryEventProducer
Creates the history event fired when an activity instances is updated.

Specified by:
createActivityInstanceUpdateEvt in interface HistoryEventProducer
Parameters:
execution - the current execution.
task - the task association that is currently updated. (May be null in case there is not task associated.)
Returns:
the history event

createActivityInstanceEndEvt

public HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution)
Description copied from interface: HistoryEventProducer
Creates the history event fired when an activity instances is ended.

Specified by:
createActivityInstanceEndEvt in interface HistoryEventProducer
Parameters:
execution - the current execution.
Returns:
the history event

createTaskInstanceCreateEvt

public HistoryEvent createTaskInstanceCreateEvt(DelegateTask task)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a task instances is created.

Specified by:
createTaskInstanceCreateEvt in interface HistoryEventProducer
Parameters:
task - the task
Returns:
the history event

createTaskInstanceUpdateEvt

public HistoryEvent createTaskInstanceUpdateEvt(DelegateTask task)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a task instances is updated.

Specified by:
createTaskInstanceUpdateEvt in interface HistoryEventProducer
Parameters:
task - the task
Returns:
the history event

createTaskInstanceCompleteEvt

public HistoryEvent createTaskInstanceCompleteEvt(DelegateTask task,
                                                  String deleteReason)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a task instances is completed.

Specified by:
createTaskInstanceCompleteEvt in interface HistoryEventProducer
Parameters:
task - the task
Returns:
the history event

createHistoricVariableCreateEvt

public HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance,
                                                    VariableScopeImpl variableScopeImpl)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a variable is created.

Specified by:
createHistoricVariableCreateEvt in interface HistoryEventProducer
Parameters:
variableInstance - the runtime variable instance
Returns:
the history event

createHistoricVariableDeleteEvt

public HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance,
                                                    VariableScopeImpl variableScopeImpl)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a variable is deleted.

Specified by:
createHistoricVariableDeleteEvt in interface HistoryEventProducer
Returns:
the history event

createHistoricVariableUpdateEvt

public HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance,
                                                    VariableScopeImpl variableScopeImpl)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a variable is updated.

Specified by:
createHistoricVariableUpdateEvt in interface HistoryEventProducer
Parameters:
variableInstance - the runtime variable instance
Returns:
the history event

createFormPropertyUpdateEvt

public HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution,
                                                String propertyId,
                                                Object propertyValue,
                                                String taskId)
Description copied from interface: HistoryEventProducer
Creates the history event fired when a form property is updated.

Specified by:
createFormPropertyUpdateEvt in interface HistoryEventProducer
propertyId - the id of the form property
propertyValue - the value of the form property
Returns:
the history event


Copyright © 2014 camunda services GmbH. All Rights Reserved.