-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test coverage for support of expression for message event data mappin…
…g, persistence addon discovery and fixed child process in different package
- Loading branch information
1 parent
8d2726d
commit d1586a8
Showing
22 changed files
with
202 additions
and
37 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
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
2 changes: 0 additions & 2 deletions
2
integration-tests/automatiko-cassandra/src/main/resources/application.properties
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
2 changes: 1 addition & 1 deletion
2
integration-tests/automatiko-db/src/main/resources/application.properties
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
1 change: 0 additions & 1 deletion
1
integration-tests/automatiko-dynamo/src/main/resources/application.properties
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
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
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
14 changes: 14 additions & 0 deletions
14
integration-tests/automatiko-http/src/main/java/org/acme/PersonFunctions.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,14 @@ | ||
package org.acme; | ||
|
||
import io.automatiko.engine.api.Functions; | ||
|
||
public class PersonFunctions implements Functions { | ||
|
||
public static Person personRewrite(Person person) { | ||
Person rewritten = new Person(); | ||
|
||
rewritten.setAge(person.getAge() + 10); | ||
rewritten.setName(person.getName().toUpperCase()); | ||
return rewritten; | ||
} | ||
} |
107 changes: 107 additions & 0 deletions
107
integration-tests/automatiko-http/src/main/resources/Send to HTTP expression.bpmn2
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,107 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- origin at X=0.0 Y=0.0 --> | ||
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:automatiko="https://automatiko.io" xmlns="https://automatiko.io" xmlns:bpmn2="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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:java="http://www.java.com/javaTypes" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd https://automatiko.io automatiko.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="2.0.0" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="https://automatiko.io" typeLanguage="http://www.java.com/javaTypes"> | ||
<bpmn2:itemDefinition id="ItemDefinition_11" isCollection="false" structureRef="org.acme.Person"/> | ||
<bpmn2:message id="Message_1" itemRef="ItemDefinition_11" name="sperson"> | ||
<bpmn2:extensionElements> | ||
<automatiko:metaData name="HTTPX-TEST"> | ||
<automatiko:metaValue><![CDATA["automatiko"]]></automatiko:metaValue> | ||
</automatiko:metaData> | ||
<automatiko:metaData name="connector"> | ||
<automatiko:metaValue><![CDATA[http]]></automatiko:metaValue> | ||
</automatiko:metaData> | ||
</bpmn2:extensionElements> | ||
</bpmn2:message> | ||
<bpmn2:process id="sendsexp" automatiko:packageName="org.acme" name="Send to HTTP endpoint using expression" isExecutable="true" processType="Public"> | ||
<bpmn2:extensionElements> | ||
<automatiko:import name="org.acme.Person"/> | ||
</bpmn2:extensionElements> | ||
<bpmn2:startEvent id="StartEvent_1" name="StartProcess"> | ||
<bpmn2:extensionElements> | ||
<automatiko:metaData name="elementname"> | ||
<automatiko:metaValue><![CDATA[StartProcess]]></automatiko:metaValue> | ||
</automatiko:metaData> | ||
</bpmn2:extensionElements> | ||
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing> | ||
</bpmn2:startEvent> | ||
<bpmn2:scriptTask id="ScriptTask_1" name="log" scriptFormat="http://www.java.com/java"> | ||
<bpmn2:extensionElements> | ||
<automatiko:metaData name="elementname"> | ||
<automatiko:metaValue><![CDATA[log]]></automatiko:metaValue> | ||
</automatiko:metaData> | ||
</bpmn2:extensionElements> | ||
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming> | ||
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing> | ||
<bpmn2:script>log("About to send message {}", person)</bpmn2:script> | ||
</bpmn2:scriptTask> | ||
<bpmn2:sequenceFlow id="SequenceFlow_1" automatiko:priority="1" sourceRef="StartEvent_1" targetRef="ScriptTask_1"/> | ||
<bpmn2:endEvent id="EndEvent_1" name="send to HTTP"> | ||
<bpmn2:extensionElements> | ||
<automatiko:metaData name="elementname"> | ||
<automatiko:metaValue><![CDATA[send to HTTP]]></automatiko:metaValue> | ||
</automatiko:metaData> | ||
</bpmn2:extensionElements> | ||
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming> | ||
<bpmn2:dataInput id="DataInput_1" itemSubjectRef="ItemDefinition_11" name="Message_1_Input"/> | ||
<bpmn2:dataInputAssociation id="DataInputAssociation_1"> | ||
<bpmn2:targetRef>DataInput_1</bpmn2:targetRef> | ||
<bpmn2:assignment id="Assignment_1"> | ||
<bpmn2:from xsi:type="bpmn2:tFormalExpression" id="FormalExpression_3">#{personRewrite(person)}</bpmn2:from> | ||
<bpmn2:to xsi:type="bpmn2:tFormalExpression" id="FormalExpression_1">DataInput_1</bpmn2:to> | ||
</bpmn2:assignment> | ||
</bpmn2:dataInputAssociation> | ||
<bpmn2:inputSet id="InputSet_1" name="Input Set 1"> | ||
<bpmn2:dataInputRefs>DataInput_1</bpmn2:dataInputRefs> | ||
</bpmn2:inputSet> | ||
<bpmn2:messageEventDefinition id="MessageEventDefinition_1" messageRef="Message_1"/> | ||
</bpmn2:endEvent> | ||
<bpmn2:sequenceFlow id="SequenceFlow_2" automatiko:priority="1" sourceRef="ScriptTask_1" targetRef="EndEvent_1"/> | ||
<bpmn2:dataObject id="person" name="person" itemSubjectRef="ItemDefinition_11"/> | ||
</bpmn2:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="sendsexp"> | ||
<bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1"> | ||
<dc:Bounds height="36.0" width="36.0" x="120.0" y="120.0"/> | ||
<bpmndi:BPMNLabel id="BPMNLabel_1"> | ||
<dc:Bounds height="11.0" width="52.0" x="112.0" y="156.0"/> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1" isExpanded="true"> | ||
<dc:Bounds height="50.0" width="110.0" x="261.0" y="113.0"/> | ||
<bpmndi:BPMNLabel id="BPMNLabel_2"> | ||
<dc:Bounds height="11.0" width="13.0" x="309.0" y="132.0"/> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1"> | ||
<dc:Bounds height="36.0" width="36.0" x="460.0" y="120.0"/> | ||
<bpmndi:BPMNLabel id="BPMNLabel_3"> | ||
<dc:Bounds height="11.0" width="56.0" x="450.0" y="156.0"/> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="BPMNShape_DataObject_1" bpmnElement="person"> | ||
<dc:Bounds height="50.0" width="36.0" x="240.0" y="230.0"/> | ||
<bpmndi:BPMNLabel id="BPMNLabel_4"> | ||
<dc:Bounds height="11.0" width="28.0" x="244.0" y="280.0"/> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ScriptTask_1"> | ||
<di:waypoint xsi:type="dc:Point" x="156.0" y="138.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="208.0" y="138.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="261.0" y="138.0"/> | ||
<bpmndi:BPMNLabel id="BPMNLabel_5"/> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_EndEvent_1"> | ||
<di:waypoint xsi:type="dc:Point" x="371.0" y="138.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="415.0" y="138.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="460.0" y="138.0"/> | ||
<bpmndi:BPMNLabel id="BPMNLabel_6"/> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="BPMNEdge_DataInputAssociation_1" bpmnElement="DataInputAssociation_1" sourceElement="BPMNShape_DataObject_1" targetElement="BPMNShape_EndEvent_1"> | ||
<di:waypoint xsi:type="dc:Point" x="276.0" y="255.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="478.0" y="255.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="478.0" y="156.0"/> | ||
<bpmndi:BPMNLabel id="BPMNLabel_7"/> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn2:definitions> |
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
2 changes: 0 additions & 2 deletions
2
integration-tests/automatiko-kafka/src/main/resources/application.properties
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
2 changes: 0 additions & 2 deletions
2
integration-tests/automatiko-mongodb/src/main/resources/application.properties
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
2 changes: 0 additions & 2 deletions
2
integration-tests/automatiko-mqtt/src/main/resources/application.properties
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
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
2 changes: 0 additions & 2 deletions
2
integration-tests/automatiko-services/src/main/resources/application.properties
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
Oops, something went wrong.