Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(engine): add failing test case for BpmnError in IOMapping
related to #CAM-3864
- Loading branch information
Showing
2 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
.../engine/test/bpmn/iomapping/InputOutputTest.testThrowErrorInScriptInputOutputMapping.bpmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:camunda="http://activiti.org/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_KvS8sPBXEeOtYvXzz5ksgw" targetNamespace="http://activiti.org/bpmn"> | ||
<process id="testProcess" isExecutable="true"> | ||
<startEvent id="start" /> | ||
<sequenceFlow sourceRef="start" targetRef="task" /> | ||
<serviceTask id="task" camunda:expression="${true}"> | ||
<extensionElements> | ||
<camunda:inputOutput> | ||
<camunda:inputParameter name="in"> | ||
<camunda:script scriptFormat="groovy"> | ||
if (throwInMapping == 'in') { | ||
throw exception | ||
} | ||
</camunda:script> | ||
</camunda:inputParameter> | ||
<camunda:outputParameter name="out"> | ||
<camunda:script scriptFormat="groovy"> | ||
if (throwInMapping == 'out') { | ||
throw exception | ||
} | ||
</camunda:script> | ||
</camunda:outputParameter> | ||
</camunda:inputOutput> | ||
</extensionElements> | ||
</serviceTask> | ||
<boundaryEvent id="BoundaryEvent_1" name="" attachedToRef="task"> | ||
<outgoing>SequenceFlow_3</outgoing> | ||
<errorEventDefinition id="_ErrorEventDefinition_4"/> | ||
</boundaryEvent> | ||
<sequenceFlow id="SequenceFlow_3" name="" sourceRef="BoundaryEvent_1" targetRef="UserTask_1"/> | ||
<userTask id="UserTask_1" name="User Task"> | ||
<incoming>SequenceFlow_3</incoming> | ||
<outgoing>SequenceFlow_4</outgoing> | ||
</userTask> | ||
<endEvent id="EndEvent_2"> | ||
<incoming>SequenceFlow_4</incoming> | ||
</endEvent> | ||
<sequenceFlow id="SequenceFlow_4" name="" sourceRef="UserTask_1" targetRef="EndEvent_2"/> | ||
<sequenceFlow sourceRef="task" targetRef="wait" /> | ||
<receiveTask id="wait" /> | ||
<sequenceFlow sourceRef="wait" targetRef="end" /> | ||
<endEvent id="end" /> | ||
</process> | ||
</definitions> |