org.camunda.bpm.engine.impl.history.producer
Interface HistoryEventProducer

All Known Implementing Classes:
CacheAwareHistoryEventProducer, DefaultHistoryEventProducer

public interface HistoryEventProducer

The producer for history events. The history event producer is responsible for extracting data from the runtime structures (Executions, Tasks, ...) and adding the data to a HistoryEvent.

Author:
Daniel Meyer, Marcel Wieczorek

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.
 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.
 

Method Detail

createProcessInstanceStartEvt

HistoryEvent createProcessInstanceStartEvt(DelegateExecution execution)
Creates the history event fired when an activity instances is created.

Parameters:
execution - the current execution.
Returns:
the history event

createProcessInstanceEndEvt

HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution)
Creates the history event fired when a process instances is ended.

Parameters:
execution - the current execution.
Returns:
the history event

createActivityInstanceStartEvt

HistoryEvent createActivityInstanceStartEvt(DelegateExecution execution)
Creates the history event fired when an activity instances is started.

Parameters:
execution - the current execution.
Returns:
the history event

createActivityInstanceUpdateEvt

HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution,
                                             DelegateTask task)
Creates the history event fired when an activity instances is updated.

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

HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution)
Creates the history event fired when an activity instances is ended.

Parameters:
execution - the current execution.
Returns:
the history event

createTaskInstanceCreateEvt

HistoryEvent createTaskInstanceCreateEvt(DelegateTask task)
Creates the history event fired when a task instances is created.

Parameters:
task - the task
Returns:
the history event

createTaskInstanceUpdateEvt

HistoryEvent createTaskInstanceUpdateEvt(DelegateTask task)
Creates the history event fired when a task instances is updated.

Parameters:
task - the task
Returns:
the history event

createTaskInstanceCompleteEvt

HistoryEvent createTaskInstanceCompleteEvt(DelegateTask task,
                                           String deleteReason)
Creates the history event fired when a task instances is completed.

Parameters:
task - the task
deleteReason -
Returns:
the history event

createHistoricVariableCreateEvt

HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance,
                                             VariableScopeImpl variableScopeImpl)
Creates the history event fired when a variable is created.

Parameters:
variableInstance - the runtime variable instance
the - scope to which the variable is linked
Returns:
the history event

createHistoricVariableUpdateEvt

HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance,
                                             VariableScopeImpl variableScopeImpl)
Creates the history event fired when a variable is updated.

Parameters:
variableInstance - the runtime variable instance
the - scope to which the variable is linked
Returns:
the history event

createHistoricVariableDeleteEvt

HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance,
                                             VariableScopeImpl variableScopeImpl)
Creates the history event fired when a variable is deleted.

Parameters:
variableInstance -
variableScopeImpl -
Returns:
the history event

createFormPropertyUpdateEvt

HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution,
                                         String propertyId,
                                         Object propertyValue,
                                         String taskId)
Creates the history event fired when a form property is updated.

Parameters:
processInstance - the id for the process instance
propertyId - the id of the form property
propertyValue - the value of the form property
taskId -
Returns:
the history event


Copyright © 2014 camunda services GmbH. All Rights Reserved.