Class HistoryParseListener
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.parser.HistoryParseListener
-
- All Implemented Interfaces:
BpmnParseListener
public class HistoryParseListener extends Object implements BpmnParseListener
This class is responsible for wiring history as execution listeners into process execution.
NOTE: the role of this class has changed since 7.0: in order to customize history behavior it is usually not necessary to override this class but rather the
HistoryEventProducerfor customizing data acquisition andHistoryEventHandlerfor customizing the persistence behavior or if you need a history event stream.- Author:
- Tom Baeyens, Joram Barrez, Falko Menge, Bernd Ruecker (camunda), Christian Lipphardt (camunda), Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutionListenerACTIVITY_INSTANCE_END_LISTENERprotected ExecutionListenerACTIVITY_INSTANCE_START_LISTENERprotected HistoryLevelhistoryLevelprotected ExecutionListenerPROCESS_INSTANCE_END_LISTENERprotected ExecutionListenerPROCESS_INSTANCE_START_LISTENERprotected TaskListenerUSER_TASK_ASSIGNMENT_HANDLERprotected TaskListenerUSER_TASK_ID_HANDLER
-
Constructor Summary
Constructors Constructor Description HistoryParseListener(HistoryEventProducer historyEventProducer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddActivityHandlers(ActivityImpl activity)protected voidensureHistoryLevelInitialized()protected voidinitExecutionListeners(HistoryEventProducer historyEventProducer)voidparseBoundaryConditionalEventDefinition(Element element, boolean interrupting, ActivityImpl conditionalActivity)voidparseBoundaryErrorEventDefinition(Element errorEventDefinition, boolean interrupting, ActivityImpl activity, ActivityImpl nestedErrorEventActivity)voidparseBoundaryEscalationEventDefinition(Element escalationEventDefinition, boolean interrupting, ActivityImpl boundaryEventActivity)voidparseBoundaryEvent(Element boundaryEventElement, ScopeImpl scopeElement, ActivityImpl activity)voidparseBoundaryMessageEventDefinition(Element element, boolean interrupting, ActivityImpl messageActivity)voidparseBoundarySignalEventDefinition(Element signalEventDefinition, boolean interrupting, ActivityImpl signalActivity)voidparseBoundaryTimerEventDefinition(Element timerEventDefinition, boolean interrupting, ActivityImpl timerActivity)voidparseBusinessRuleTask(Element businessRuleTaskElement, ScopeImpl scope, ActivityImpl activity)voidparseCallActivity(Element callActivityElement, ScopeImpl scope, ActivityImpl activity)voidparseCompensateEventDefinition(Element compensateEventDefinition, ActivityImpl compensationActivity)voidparseConditionalStartEventForEventSubprocess(Element element, ActivityImpl conditionalActivity, boolean interrupting)voidparseEndEvent(Element endEventElement, ScopeImpl scope, ActivityImpl activity)voidparseEventBasedGateway(Element eventBasedGwElement, ScopeImpl scope, ActivityImpl activity)voidparseExclusiveGateway(Element exclusiveGwElement, ScopeImpl scope, ActivityImpl activity)voidparseInclusiveGateway(Element inclusiveGwElement, ScopeImpl scope, ActivityImpl activity)voidparseIntermediateCatchEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)voidparseIntermediateConditionalEventDefinition(Element conditionalEventDefinition, ActivityImpl conditionalActivity)voidparseIntermediateMessageCatchEventDefinition(Element messageEventDefinition, ActivityImpl nestedActivity)voidparseIntermediateSignalCatchEventDefinition(Element signalEventDefinition, ActivityImpl signalActivity)voidparseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)voidparseIntermediateTimerEventDefinition(Element timerEventDefinition, ActivityImpl timerActivity)voidparseIoMapping(Element extensionElements, ActivityImpl activity, IoMapping inputOutput)voidparseManualTask(Element manualTaskElement, ScopeImpl scope, ActivityImpl activity)voidparseMultiInstanceLoopCharacteristics(Element activityElement, Element multiInstanceLoopCharacteristicsElement, ActivityImpl activity)voidparseParallelGateway(Element parallelGwElement, ScopeImpl scope, ActivityImpl activity)voidparseProcess(Element processElement, ProcessDefinitionEntity processDefinition)voidparseProperty(Element propertyElement, VariableDeclaration variableDeclaration, ActivityImpl activity)voidparseReceiveTask(Element receiveTaskElement, ScopeImpl scope, ActivityImpl activity)voidparseRootElement(Element rootElement, List<ProcessDefinitionEntity> processDefinitions)voidparseScriptTask(Element scriptTaskElement, ScopeImpl scope, ActivityImpl activity)voidparseSendTask(Element sendTaskElement, ScopeImpl scope, ActivityImpl activity)voidparseSequenceFlow(Element sequenceFlowElement, ScopeImpl scopeElement, TransitionImpl transition)voidparseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity)voidparseStartEvent(Element startEventElement, ScopeImpl scope, ActivityImpl activity)voidparseSubProcess(Element subProcessElement, ScopeImpl scope, ActivityImpl activity)voidparseTask(Element taskElement, ScopeImpl scope, ActivityImpl activity)voidparseTransaction(Element transactionElement, ScopeImpl scope, ActivityImpl activity)voidparseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity)
-
-
-
Field Detail
-
PROCESS_INSTANCE_START_LISTENER
protected ExecutionListener PROCESS_INSTANCE_START_LISTENER
-
PROCESS_INSTANCE_END_LISTENER
protected ExecutionListener PROCESS_INSTANCE_END_LISTENER
-
ACTIVITY_INSTANCE_START_LISTENER
protected ExecutionListener ACTIVITY_INSTANCE_START_LISTENER
-
ACTIVITY_INSTANCE_END_LISTENER
protected ExecutionListener ACTIVITY_INSTANCE_END_LISTENER
-
USER_TASK_ASSIGNMENT_HANDLER
protected TaskListener USER_TASK_ASSIGNMENT_HANDLER
-
USER_TASK_ID_HANDLER
protected TaskListener USER_TASK_ID_HANDLER
-
historyLevel
protected HistoryLevel historyLevel
-
-
Constructor Detail
-
HistoryParseListener
public HistoryParseListener(HistoryEventProducer historyEventProducer)
-
-
Method Detail
-
initExecutionListeners
protected void initExecutionListeners(HistoryEventProducer historyEventProducer)
-
parseProcess
public void parseProcess(Element processElement, ProcessDefinitionEntity processDefinition)
- Specified by:
parseProcessin interfaceBpmnParseListener
-
parseExclusiveGateway
public void parseExclusiveGateway(Element exclusiveGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseExclusiveGatewayin interfaceBpmnParseListener
-
parseInclusiveGateway
public void parseInclusiveGateway(Element inclusiveGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseInclusiveGatewayin interfaceBpmnParseListener
-
parseCallActivity
public void parseCallActivity(Element callActivityElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseCallActivityin interfaceBpmnParseListener
-
parseManualTask
public void parseManualTask(Element manualTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseManualTaskin interfaceBpmnParseListener
-
parseReceiveTask
public void parseReceiveTask(Element receiveTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseReceiveTaskin interfaceBpmnParseListener
-
parseScriptTask
public void parseScriptTask(Element scriptTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseScriptTaskin interfaceBpmnParseListener
-
parseTask
public void parseTask(Element taskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseTaskin interfaceBpmnParseListener
-
parseUserTask
public void parseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseUserTaskin interfaceBpmnParseListener
-
parseServiceTask
public void parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseServiceTaskin interfaceBpmnParseListener
-
parseBusinessRuleTask
public void parseBusinessRuleTask(Element businessRuleTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseBusinessRuleTaskin interfaceBpmnParseListener
-
parseSubProcess
public void parseSubProcess(Element subProcessElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseSubProcessin interfaceBpmnParseListener
-
parseStartEvent
public void parseStartEvent(Element startEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseStartEventin interfaceBpmnParseListener
-
parseSendTask
public void parseSendTask(Element sendTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseSendTaskin interfaceBpmnParseListener
-
parseEndEvent
public void parseEndEvent(Element endEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseEndEventin interfaceBpmnParseListener
-
parseParallelGateway
public void parseParallelGateway(Element parallelGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseParallelGatewayin interfaceBpmnParseListener
-
parseBoundaryTimerEventDefinition
public void parseBoundaryTimerEventDefinition(Element timerEventDefinition, boolean interrupting, ActivityImpl timerActivity)
- Specified by:
parseBoundaryTimerEventDefinitionin interfaceBpmnParseListener
-
parseBoundaryErrorEventDefinition
public void parseBoundaryErrorEventDefinition(Element errorEventDefinition, boolean interrupting, ActivityImpl activity, ActivityImpl nestedErrorEventActivity)
- Specified by:
parseBoundaryErrorEventDefinitionin interfaceBpmnParseListener
-
parseIntermediateTimerEventDefinition
public void parseIntermediateTimerEventDefinition(Element timerEventDefinition, ActivityImpl timerActivity)
- Specified by:
parseIntermediateTimerEventDefinitionin interfaceBpmnParseListener
-
parseProperty
public void parseProperty(Element propertyElement, VariableDeclaration variableDeclaration, ActivityImpl activity)
- Specified by:
parsePropertyin interfaceBpmnParseListener
-
parseSequenceFlow
public void parseSequenceFlow(Element sequenceFlowElement, ScopeImpl scopeElement, TransitionImpl transition)
- Specified by:
parseSequenceFlowin interfaceBpmnParseListener
-
parseRootElement
public void parseRootElement(Element rootElement, List<ProcessDefinitionEntity> processDefinitions)
- Specified by:
parseRootElementin interfaceBpmnParseListener
-
parseBoundarySignalEventDefinition
public void parseBoundarySignalEventDefinition(Element signalEventDefinition, boolean interrupting, ActivityImpl signalActivity)
- Specified by:
parseBoundarySignalEventDefinitionin interfaceBpmnParseListener
-
parseEventBasedGateway
public void parseEventBasedGateway(Element eventBasedGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseEventBasedGatewayin interfaceBpmnParseListener
-
parseMultiInstanceLoopCharacteristics
public void parseMultiInstanceLoopCharacteristics(Element activityElement, Element multiInstanceLoopCharacteristicsElement, ActivityImpl activity)
- Specified by:
parseMultiInstanceLoopCharacteristicsin interfaceBpmnParseListener
-
parseIntermediateSignalCatchEventDefinition
public void parseIntermediateSignalCatchEventDefinition(Element signalEventDefinition, ActivityImpl signalActivity)
- Specified by:
parseIntermediateSignalCatchEventDefinitionin interfaceBpmnParseListener
-
parseTransaction
public void parseTransaction(Element transactionElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseTransactionin interfaceBpmnParseListener
-
parseCompensateEventDefinition
public void parseCompensateEventDefinition(Element compensateEventDefinition, ActivityImpl compensationActivity)
- Specified by:
parseCompensateEventDefinitionin interfaceBpmnParseListener
-
parseIntermediateThrowEvent
public void parseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseIntermediateThrowEventin interfaceBpmnParseListener
-
parseIntermediateCatchEvent
public void parseIntermediateCatchEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseIntermediateCatchEventin interfaceBpmnParseListener
-
parseBoundaryEvent
public void parseBoundaryEvent(Element boundaryEventElement, ScopeImpl scopeElement, ActivityImpl activity)
- Specified by:
parseBoundaryEventin interfaceBpmnParseListener
-
parseIntermediateMessageCatchEventDefinition
public void parseIntermediateMessageCatchEventDefinition(Element messageEventDefinition, ActivityImpl nestedActivity)
- Specified by:
parseIntermediateMessageCatchEventDefinitionin interfaceBpmnParseListener
-
parseBoundaryMessageEventDefinition
public void parseBoundaryMessageEventDefinition(Element element, boolean interrupting, ActivityImpl messageActivity)
- Specified by:
parseBoundaryMessageEventDefinitionin interfaceBpmnParseListener
-
parseBoundaryEscalationEventDefinition
public void parseBoundaryEscalationEventDefinition(Element escalationEventDefinition, boolean interrupting, ActivityImpl boundaryEventActivity)
- Specified by:
parseBoundaryEscalationEventDefinitionin interfaceBpmnParseListener
-
parseBoundaryConditionalEventDefinition
public void parseBoundaryConditionalEventDefinition(Element element, boolean interrupting, ActivityImpl conditionalActivity)
- Specified by:
parseBoundaryConditionalEventDefinitionin interfaceBpmnParseListener
-
parseIntermediateConditionalEventDefinition
public void parseIntermediateConditionalEventDefinition(Element conditionalEventDefinition, ActivityImpl conditionalActivity)
- Specified by:
parseIntermediateConditionalEventDefinitionin interfaceBpmnParseListener
-
parseConditionalStartEventForEventSubprocess
public void parseConditionalStartEventForEventSubprocess(Element element, ActivityImpl conditionalActivity, boolean interrupting)
- Specified by:
parseConditionalStartEventForEventSubprocessin interfaceBpmnParseListener
-
parseIoMapping
public void parseIoMapping(Element extensionElements, ActivityImpl activity, IoMapping inputOutput)
- Specified by:
parseIoMappingin interfaceBpmnParseListener
-
addActivityHandlers
protected void addActivityHandlers(ActivityImpl activity)
-
ensureHistoryLevelInitialized
protected void ensureHistoryLevelInitialized()
-
-