-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for send and business rule external tasks (#194)
- Loading branch information
Showing
9 changed files
with
257 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
49 changes: 49 additions & 0 deletions
49
integration-tests/simple/src/main/resources/simpleExternalBusinessRuleTask.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,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmndt="http://camunda.org/schema/extension/bpmn-driven-testing" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0cy2jey" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.20.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.20.0"> | ||
<bpmn:process id="simpleExternalBusinessRuleTask" isExecutable="true" camunda:historyTimeToLive="180"> | ||
<bpmn:extensionElements> | ||
<bpmndt:testCases> | ||
<bpmndt:testCase> | ||
<bpmndt:path> | ||
<bpmndt:node>startEvent</bpmndt:node> | ||
<bpmndt:node>externalBusinessRuleTask</bpmndt:node> | ||
<bpmndt:node>endEvent</bpmndt:node> | ||
</bpmndt:path> | ||
</bpmndt:testCase> | ||
</bpmndt:testCases> | ||
</bpmn:extensionElements> | ||
<bpmn:startEvent id="startEvent"> | ||
<bpmn:outgoing>Flow_1nsyone</bpmn:outgoing> | ||
</bpmn:startEvent> | ||
<bpmn:sequenceFlow id="Flow_1nsyone" sourceRef="startEvent" targetRef="externalBusinessRuleTask" /> | ||
<bpmn:endEvent id="endEvent"> | ||
<bpmn:incoming>Flow_1s9au55</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:sequenceFlow id="Flow_1s9au55" sourceRef="externalBusinessRuleTask" targetRef="endEvent" /> | ||
<bpmn:businessRuleTask id="externalBusinessRuleTask" camunda:type="external" camunda:topic="test-topic"> | ||
<bpmn:incoming>Flow_1nsyone</bpmn:incoming> | ||
<bpmn:outgoing>Flow_1s9au55</bpmn:outgoing> | ||
</bpmn:businessRuleTask> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="simpleExternalBusinessRuleTask"> | ||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="startEvent"> | ||
<dc:Bounds x="179" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_0rt6m0u_di" bpmnElement="endEvent"> | ||
<dc:Bounds x="432" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_1fmdhcz_di" bpmnElement="externalBusinessRuleTask"> | ||
<dc:Bounds x="270" y="77" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="Flow_1nsyone_di" bpmnElement="Flow_1nsyone"> | ||
<di:waypoint x="215" y="117" /> | ||
<di:waypoint x="270" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_1s9au55_di" bpmnElement="Flow_1s9au55"> | ||
<di:waypoint x="370" y="117" /> | ||
<di:waypoint x="432" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
50 changes: 50 additions & 0 deletions
50
integration-tests/simple/src/main/resources/simpleExternalMessageThrowEvent.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,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:bpmndt="http://camunda.org/schema/extension/bpmn-driven-testing" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0cy2jey" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.20.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.20.0"> | ||
<bpmn:process id="simpleExternalMessageThrowEvent" isExecutable="true" camunda:historyTimeToLive="180"> | ||
<bpmn:extensionElements> | ||
<bpmndt:testCases> | ||
<bpmndt:testCase> | ||
<bpmndt:path> | ||
<bpmndt:node>startEvent</bpmndt:node> | ||
<bpmndt:node>externalMessageThrowEvent</bpmndt:node> | ||
<bpmndt:node>endEvent</bpmndt:node> | ||
</bpmndt:path> | ||
</bpmndt:testCase> | ||
</bpmndt:testCases> | ||
</bpmn:extensionElements> | ||
<bpmn:startEvent id="startEvent"> | ||
<bpmn:outgoing>Flow_0ll0rsa</bpmn:outgoing> | ||
</bpmn:startEvent> | ||
<bpmn:sequenceFlow id="Flow_0ll0rsa" sourceRef="startEvent" targetRef="externalMessageThrowEvent" /> | ||
<bpmn:endEvent id="endEvent"> | ||
<bpmn:incoming>Flow_1upmxrt</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:sequenceFlow id="Flow_1upmxrt" sourceRef="externalMessageThrowEvent" targetRef="endEvent" /> | ||
<bpmn:intermediateThrowEvent id="externalMessageThrowEvent"> | ||
<bpmn:incoming>Flow_0ll0rsa</bpmn:incoming> | ||
<bpmn:outgoing>Flow_1upmxrt</bpmn:outgoing> | ||
<bpmn:messageEventDefinition id="MessageEventDefinition_11agqmh" camunda:type="external" camunda:topic="test-topic" /> | ||
</bpmn:intermediateThrowEvent> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="simpleExternalMessageThrowEvent"> | ||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="startEvent"> | ||
<dc:Bounds x="179" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_160d3xt_di" bpmnElement="endEvent"> | ||
<dc:Bounds x="372" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_1rzedh4_di" bpmnElement="externalMessageThrowEvent"> | ||
<dc:Bounds x="272" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="Flow_0ll0rsa_di" bpmnElement="Flow_0ll0rsa"> | ||
<di:waypoint x="215" y="117" /> | ||
<di:waypoint x="272" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_1upmxrt_di" bpmnElement="Flow_1upmxrt"> | ||
<di:waypoint x="308" y="117" /> | ||
<di:waypoint x="372" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
49 changes: 49 additions & 0 deletions
49
integration-tests/simple/src/main/resources/simpleExternalSendTask.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,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:bpmndt="http://camunda.org/schema/extension/bpmn-driven-testing" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0cy2jey" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.20.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.20.0"> | ||
<bpmn:process id="simpleExternalSendTask" isExecutable="true" camunda:historyTimeToLive="180"> | ||
<bpmn:extensionElements> | ||
<bpmndt:testCases> | ||
<bpmndt:testCase> | ||
<bpmndt:path> | ||
<bpmndt:node>startEvent</bpmndt:node> | ||
<bpmndt:node>externalSendTask</bpmndt:node> | ||
<bpmndt:node>endEvent</bpmndt:node> | ||
</bpmndt:path> | ||
</bpmndt:testCase> | ||
</bpmndt:testCases> | ||
</bpmn:extensionElements> | ||
<bpmn:startEvent id="startEvent"> | ||
<bpmn:outgoing>Flow_1nsyone</bpmn:outgoing> | ||
</bpmn:startEvent> | ||
<bpmn:sequenceFlow id="Flow_1nsyone" sourceRef="startEvent" targetRef="externalSendTask" /> | ||
<bpmn:endEvent id="endEvent"> | ||
<bpmn:incoming>Flow_1s9au55</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:sequenceFlow id="Flow_1s9au55" sourceRef="externalSendTask" targetRef="endEvent" /> | ||
<bpmn:sendTask id="externalSendTask" camunda:type="external" camunda:topic="test-topic"> | ||
<bpmn:incoming>Flow_1nsyone</bpmn:incoming> | ||
<bpmn:outgoing>Flow_1s9au55</bpmn:outgoing> | ||
</bpmn:sendTask> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="simpleExternalSendTask"> | ||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="startEvent"> | ||
<dc:Bounds x="179" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_0rt6m0u_di" bpmnElement="endEvent"> | ||
<dc:Bounds x="432" y="99" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_05885qi_di" bpmnElement="externalSendTask"> | ||
<dc:Bounds x="270" y="77" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="Flow_1nsyone_di" bpmnElement="Flow_1nsyone"> | ||
<di:waypoint x="215" y="117" /> | ||
<di:waypoint x="270" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_1s9au55_di" bpmnElement="Flow_1s9au55"> | ||
<di:waypoint x="370" y="117" /> | ||
<di:waypoint x="432" y="117" /> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
17 changes: 17 additions & 0 deletions
17
...gration-tests/simple/src/test/java/org/example/it/SimpleExternalBusinessRuleTaskTest.java
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,17 @@ | ||
package org.example.it; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import generated.simpleexternalbusinessruletask.TC_startEvent__endEvent; | ||
|
||
public class SimpleExternalBusinessRuleTaskTest { | ||
|
||
@RegisterExtension | ||
public TC_startEvent__endEvent tc = new TC_startEvent__endEvent(); | ||
|
||
@Test | ||
public void testExecute() { | ||
tc.createExecutor().execute(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ration-tests/simple/src/test/java/org/example/it/SimpleExternalMessageThrowEventTest.java
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,17 @@ | ||
package org.example.it; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import generated.simpleexternalmessagethrowevent.TC_startEvent__endEvent; | ||
|
||
public class SimpleExternalMessageThrowEventTest { | ||
|
||
@RegisterExtension | ||
public TC_startEvent__endEvent tc = new TC_startEvent__endEvent(); | ||
|
||
@Test | ||
public void testExecute() { | ||
tc.createExecutor().execute(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
integration-tests/simple/src/test/java/org/example/it/SimpleExternalSendTaskTest.java
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,17 @@ | ||
package org.example.it; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
import generated.simpleexternalsendtask.TC_startEvent__endEvent; | ||
|
||
public class SimpleExternalSendTaskTest { | ||
|
||
@RegisterExtension | ||
public TC_startEvent__endEvent tc = new TC_startEvent__endEvent(); | ||
|
||
@Test | ||
public void testExecute() { | ||
tc.createExecutor().execute(); | ||
} | ||
} |
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
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