Class HistoryParseListener
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.parser.HistoryParseListener
-
- All Implemented Interfaces:
BpmnParseListener
public class HistoryParseListener extends java.lang.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
HistoryEventProducer
for customizing data acquisition andHistoryEventHandler
for 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 ExecutionListener
ACTIVITY_INSTANCE_END_LISTENER
protected ExecutionListener
ACTIVITY_INSTANCE_START_LISTENER
protected HistoryLevel
historyLevel
protected ExecutionListener
PROCESS_INSTANCE_END_LISTENER
protected ExecutionListener
PROCESS_INSTANCE_START_LISTENER
protected TaskListener
USER_TASK_ASSIGNMENT_HANDLER
protected TaskListener
USER_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 void
addActivityHandlers(ActivityImpl activity)
protected void
ensureHistoryLevelInitialized()
protected void
initExecutionListeners(HistoryEventProducer historyEventProducer)
void
parseBoundaryConditionalEventDefinition(Element element, boolean interrupting, ActivityImpl conditionalActivity)
void
parseBoundaryErrorEventDefinition(Element errorEventDefinition, boolean interrupting, ActivityImpl activity, ActivityImpl nestedErrorEventActivity)
void
parseBoundaryEscalationEventDefinition(Element escalationEventDefinition, boolean interrupting, ActivityImpl boundaryEventActivity)
void
parseBoundaryEvent(Element boundaryEventElement, ScopeImpl scopeElement, ActivityImpl activity)
void
parseBoundaryMessageEventDefinition(Element element, boolean interrupting, ActivityImpl messageActivity)
void
parseBoundarySignalEventDefinition(Element signalEventDefinition, boolean interrupting, ActivityImpl signalActivity)
void
parseBoundaryTimerEventDefinition(Element timerEventDefinition, boolean interrupting, ActivityImpl timerActivity)
void
parseBusinessRuleTask(Element businessRuleTaskElement, ScopeImpl scope, ActivityImpl activity)
void
parseCallActivity(Element callActivityElement, ScopeImpl scope, ActivityImpl activity)
void
parseCompensateEventDefinition(Element compensateEventDefinition, ActivityImpl compensationActivity)
void
parseConditionalStartEventForEventSubprocess(Element element, ActivityImpl conditionalActivity, boolean interrupting)
void
parseEndEvent(Element endEventElement, ScopeImpl scope, ActivityImpl activity)
void
parseEventBasedGateway(Element eventBasedGwElement, ScopeImpl scope, ActivityImpl activity)
void
parseExclusiveGateway(Element exclusiveGwElement, ScopeImpl scope, ActivityImpl activity)
void
parseInclusiveGateway(Element inclusiveGwElement, ScopeImpl scope, ActivityImpl activity)
void
parseIntermediateCatchEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)
void
parseIntermediateConditionalEventDefinition(Element conditionalEventDefinition, ActivityImpl conditionalActivity)
void
parseIntermediateMessageCatchEventDefinition(Element messageEventDefinition, ActivityImpl nestedActivity)
void
parseIntermediateSignalCatchEventDefinition(Element signalEventDefinition, ActivityImpl signalActivity)
void
parseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)
void
parseIntermediateTimerEventDefinition(Element timerEventDefinition, ActivityImpl timerActivity)
void
parseIoMapping(Element extensionElements, ActivityImpl activity, IoMapping inputOutput)
void
parseManualTask(Element manualTaskElement, ScopeImpl scope, ActivityImpl activity)
void
parseMultiInstanceLoopCharacteristics(Element activityElement, Element multiInstanceLoopCharacteristicsElement, ActivityImpl activity)
void
parseParallelGateway(Element parallelGwElement, ScopeImpl scope, ActivityImpl activity)
void
parseProcess(Element processElement, ProcessDefinitionEntity processDefinition)
void
parseProperty(Element propertyElement, VariableDeclaration variableDeclaration, ActivityImpl activity)
void
parseReceiveTask(Element receiveTaskElement, ScopeImpl scope, ActivityImpl activity)
void
parseRootElement(Element rootElement, java.util.List<ProcessDefinitionEntity> processDefinitions)
void
parseScriptTask(Element scriptTaskElement, ScopeImpl scope, ActivityImpl activity)
void
parseSendTask(Element sendTaskElement, ScopeImpl scope, ActivityImpl activity)
void
parseSequenceFlow(Element sequenceFlowElement, ScopeImpl scopeElement, TransitionImpl transition)
void
parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity)
void
parseStartEvent(Element startEventElement, ScopeImpl scope, ActivityImpl activity)
void
parseSubProcess(Element subProcessElement, ScopeImpl scope, ActivityImpl activity)
void
parseTask(Element taskElement, ScopeImpl scope, ActivityImpl activity)
void
parseTransaction(Element transactionElement, ScopeImpl scope, ActivityImpl activity)
void
parseUserTask(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:
parseProcess
in interfaceBpmnParseListener
-
parseExclusiveGateway
public void parseExclusiveGateway(Element exclusiveGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseExclusiveGateway
in interfaceBpmnParseListener
-
parseInclusiveGateway
public void parseInclusiveGateway(Element inclusiveGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseInclusiveGateway
in interfaceBpmnParseListener
-
parseCallActivity
public void parseCallActivity(Element callActivityElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseCallActivity
in interfaceBpmnParseListener
-
parseManualTask
public void parseManualTask(Element manualTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseManualTask
in interfaceBpmnParseListener
-
parseReceiveTask
public void parseReceiveTask(Element receiveTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseReceiveTask
in interfaceBpmnParseListener
-
parseScriptTask
public void parseScriptTask(Element scriptTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseScriptTask
in interfaceBpmnParseListener
-
parseTask
public void parseTask(Element taskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseTask
in interfaceBpmnParseListener
-
parseUserTask
public void parseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseUserTask
in interfaceBpmnParseListener
-
parseServiceTask
public void parseServiceTask(Element serviceTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseServiceTask
in interfaceBpmnParseListener
-
parseBusinessRuleTask
public void parseBusinessRuleTask(Element businessRuleTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseBusinessRuleTask
in interfaceBpmnParseListener
-
parseSubProcess
public void parseSubProcess(Element subProcessElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseSubProcess
in interfaceBpmnParseListener
-
parseStartEvent
public void parseStartEvent(Element startEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseStartEvent
in interfaceBpmnParseListener
-
parseSendTask
public void parseSendTask(Element sendTaskElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseSendTask
in interfaceBpmnParseListener
-
parseEndEvent
public void parseEndEvent(Element endEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseEndEvent
in interfaceBpmnParseListener
-
parseParallelGateway
public void parseParallelGateway(Element parallelGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseParallelGateway
in interfaceBpmnParseListener
-
parseBoundaryTimerEventDefinition
public void parseBoundaryTimerEventDefinition(Element timerEventDefinition, boolean interrupting, ActivityImpl timerActivity)
- Specified by:
parseBoundaryTimerEventDefinition
in interfaceBpmnParseListener
-
parseBoundaryErrorEventDefinition
public void parseBoundaryErrorEventDefinition(Element errorEventDefinition, boolean interrupting, ActivityImpl activity, ActivityImpl nestedErrorEventActivity)
- Specified by:
parseBoundaryErrorEventDefinition
in interfaceBpmnParseListener
-
parseIntermediateTimerEventDefinition
public void parseIntermediateTimerEventDefinition(Element timerEventDefinition, ActivityImpl timerActivity)
- Specified by:
parseIntermediateTimerEventDefinition
in interfaceBpmnParseListener
-
parseProperty
public void parseProperty(Element propertyElement, VariableDeclaration variableDeclaration, ActivityImpl activity)
- Specified by:
parseProperty
in interfaceBpmnParseListener
-
parseSequenceFlow
public void parseSequenceFlow(Element sequenceFlowElement, ScopeImpl scopeElement, TransitionImpl transition)
- Specified by:
parseSequenceFlow
in interfaceBpmnParseListener
-
parseRootElement
public void parseRootElement(Element rootElement, java.util.List<ProcessDefinitionEntity> processDefinitions)
- Specified by:
parseRootElement
in interfaceBpmnParseListener
-
parseBoundarySignalEventDefinition
public void parseBoundarySignalEventDefinition(Element signalEventDefinition, boolean interrupting, ActivityImpl signalActivity)
- Specified by:
parseBoundarySignalEventDefinition
in interfaceBpmnParseListener
-
parseEventBasedGateway
public void parseEventBasedGateway(Element eventBasedGwElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseEventBasedGateway
in interfaceBpmnParseListener
-
parseMultiInstanceLoopCharacteristics
public void parseMultiInstanceLoopCharacteristics(Element activityElement, Element multiInstanceLoopCharacteristicsElement, ActivityImpl activity)
- Specified by:
parseMultiInstanceLoopCharacteristics
in interfaceBpmnParseListener
-
parseIntermediateSignalCatchEventDefinition
public void parseIntermediateSignalCatchEventDefinition(Element signalEventDefinition, ActivityImpl signalActivity)
- Specified by:
parseIntermediateSignalCatchEventDefinition
in interfaceBpmnParseListener
-
parseTransaction
public void parseTransaction(Element transactionElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseTransaction
in interfaceBpmnParseListener
-
parseCompensateEventDefinition
public void parseCompensateEventDefinition(Element compensateEventDefinition, ActivityImpl compensationActivity)
- Specified by:
parseCompensateEventDefinition
in interfaceBpmnParseListener
-
parseIntermediateThrowEvent
public void parseIntermediateThrowEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseIntermediateThrowEvent
in interfaceBpmnParseListener
-
parseIntermediateCatchEvent
public void parseIntermediateCatchEvent(Element intermediateEventElement, ScopeImpl scope, ActivityImpl activity)
- Specified by:
parseIntermediateCatchEvent
in interfaceBpmnParseListener
-
parseBoundaryEvent
public void parseBoundaryEvent(Element boundaryEventElement, ScopeImpl scopeElement, ActivityImpl activity)
- Specified by:
parseBoundaryEvent
in interfaceBpmnParseListener
-
parseIntermediateMessageCatchEventDefinition
public void parseIntermediateMessageCatchEventDefinition(Element messageEventDefinition, ActivityImpl nestedActivity)
- Specified by:
parseIntermediateMessageCatchEventDefinition
in interfaceBpmnParseListener
-
parseBoundaryMessageEventDefinition
public void parseBoundaryMessageEventDefinition(Element element, boolean interrupting, ActivityImpl messageActivity)
- Specified by:
parseBoundaryMessageEventDefinition
in interfaceBpmnParseListener
-
parseBoundaryEscalationEventDefinition
public void parseBoundaryEscalationEventDefinition(Element escalationEventDefinition, boolean interrupting, ActivityImpl boundaryEventActivity)
- Specified by:
parseBoundaryEscalationEventDefinition
in interfaceBpmnParseListener
-
parseBoundaryConditionalEventDefinition
public void parseBoundaryConditionalEventDefinition(Element element, boolean interrupting, ActivityImpl conditionalActivity)
- Specified by:
parseBoundaryConditionalEventDefinition
in interfaceBpmnParseListener
-
parseIntermediateConditionalEventDefinition
public void parseIntermediateConditionalEventDefinition(Element conditionalEventDefinition, ActivityImpl conditionalActivity)
- Specified by:
parseIntermediateConditionalEventDefinition
in interfaceBpmnParseListener
-
parseConditionalStartEventForEventSubprocess
public void parseConditionalStartEventForEventSubprocess(Element element, ActivityImpl conditionalActivity, boolean interrupting)
- Specified by:
parseConditionalStartEventForEventSubprocess
in interfaceBpmnParseListener
-
parseIoMapping
public void parseIoMapping(Element extensionElements, ActivityImpl activity, IoMapping inputOutput)
- Specified by:
parseIoMapping
in interfaceBpmnParseListener
-
addActivityHandlers
protected void addActivityHandlers(ActivityImpl activity)
-
ensureHistoryLevelInitialized
protected void ensureHistoryLevelInitialized()
-
-