Class BpmndtParseListener
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
org.camunda.community.bpmndt.api.cfg.BpmndtParseListener
- All Implemented Interfaces:
org.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener
public class BpmndtParseListener
extends org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
Custom BPMN parse listener that:
1. Overrides
CallActivityBehaviors to make test cases independent of sub processes.
2. Enables asynchronous continuation for multi instance activities.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinstrumentCallActivity(org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) Instruments the call activity by overriding it's behavior to allow isolated testing.protected voidinstrumentEndActivity(List<org.camunda.bpm.engine.impl.pvm.process.ActivityImpl> activities) Instruments the end activity, if it does not end the process.protected voidinstrumentMultiInstanceActivity(org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) Instruments the given activity, if it is a multi instance activity.protected voidinstrumentMultiInstanceScope(org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) Instruments the given activity, if it is a multi instance scope.voidparseBusinessRuleTask(org.camunda.bpm.engine.impl.util.xml.Element businessRuleTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseCallActivity(org.camunda.bpm.engine.impl.util.xml.Element callActivityElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseManualTask(org.camunda.bpm.engine.impl.util.xml.Element manualTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseProcess(org.camunda.bpm.engine.impl.util.xml.Element processElement, org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity processDefinition) voidparseScriptTask(org.camunda.bpm.engine.impl.util.xml.Element scriptTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseSendTask(org.camunda.bpm.engine.impl.util.xml.Element sendTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseServiceTask(org.camunda.bpm.engine.impl.util.xml.Element serviceTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseSubProcess(org.camunda.bpm.engine.impl.util.xml.Element subProcessElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseTask(org.camunda.bpm.engine.impl.util.xml.Element taskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidparseUserTask(org.camunda.bpm.engine.impl.util.xml.Element userTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) voidsetInstance(TestCaseInstance instance) Sets a reference to the related test case instance.protected StringstripMultiInstanceScopeSuffix(String activityId) Methods inherited from class org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
parseBoundaryConditionalEventDefinition, parseBoundaryErrorEventDefinition, parseBoundaryEscalationEventDefinition, parseBoundaryEvent, parseBoundaryMessageEventDefinition, parseBoundarySignalEventDefinition, parseBoundaryTimerEventDefinition, parseCompensateEventDefinition, parseConditionalStartEventForEventSubprocess, parseEndEvent, parseEventBasedGateway, parseExclusiveGateway, parseInclusiveGateway, parseIntermediateCatchEvent, parseIntermediateConditionalEventDefinition, parseIntermediateMessageCatchEventDefinition, parseIntermediateSignalCatchEventDefinition, parseIntermediateThrowEvent, parseIntermediateTimerEventDefinition, parseIoMapping, parseMultiInstanceLoopCharacteristics, parseParallelGateway, parseProperty, parseReceiveTask, parseRootElement, parseSequenceFlow, parseStartEvent, parseTransaction
-
Constructor Details
-
BpmndtParseListener
public BpmndtParseListener()
-
-
Method Details
-
instrumentCallActivity
protected void instrumentCallActivity(org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) Instruments the call activity by overriding it's behavior to allow isolated testing.- Parameters:
activity- The current activity.
-
instrumentEndActivity
protected void instrumentEndActivity(List<org.camunda.bpm.engine.impl.pvm.process.ActivityImpl> activities) Instruments the end activity, if it does not end the process.- Parameters:
activities- A list of activities, which should also contain the end activity.
-
instrumentMultiInstanceActivity
protected void instrumentMultiInstanceActivity(org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) Instruments the given activity, if it is a multi instance activity.- Parameters:
scope- The surrounding scope.activity- The current activity.
-
instrumentMultiInstanceScope
protected void instrumentMultiInstanceScope(org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) Instruments the given activity, if it is a multi instance scope.- Parameters:
scope- The surrounding scope.activity- The current activity.
-
parseCallActivity
public void parseCallActivity(org.camunda.bpm.engine.impl.util.xml.Element callActivityElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseCallActivityin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseCallActivityin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseBusinessRuleTask
public void parseBusinessRuleTask(org.camunda.bpm.engine.impl.util.xml.Element businessRuleTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseBusinessRuleTaskin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseBusinessRuleTaskin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseManualTask
public void parseManualTask(org.camunda.bpm.engine.impl.util.xml.Element manualTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseManualTaskin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseManualTaskin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseProcess
public void parseProcess(org.camunda.bpm.engine.impl.util.xml.Element processElement, org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity processDefinition) - Specified by:
parseProcessin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseProcessin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseScriptTask
public void parseScriptTask(org.camunda.bpm.engine.impl.util.xml.Element scriptTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseScriptTaskin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseScriptTaskin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseSendTask
public void parseSendTask(org.camunda.bpm.engine.impl.util.xml.Element sendTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseSendTaskin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseSendTaskin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseServiceTask
public void parseServiceTask(org.camunda.bpm.engine.impl.util.xml.Element serviceTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseServiceTaskin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseServiceTaskin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseSubProcess
public void parseSubProcess(org.camunda.bpm.engine.impl.util.xml.Element subProcessElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseSubProcessin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseSubProcessin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseTask
public void parseTask(org.camunda.bpm.engine.impl.util.xml.Element taskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseTaskin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseTaskin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
parseUserTask
public void parseUserTask(org.camunda.bpm.engine.impl.util.xml.Element userTaskElement, org.camunda.bpm.engine.impl.pvm.process.ScopeImpl scope, org.camunda.bpm.engine.impl.pvm.process.ActivityImpl activity) - Specified by:
parseUserTaskin interfaceorg.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener- Overrides:
parseUserTaskin classorg.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener
-
setInstance
Sets a reference to the related test case instance.- Parameters:
instance- The related instance.
-
stripMultiInstanceScopeSuffix
-