feat: Use container for the API service

This commit is contained in:
Lucàs
2024-12-19 11:25:29 +01:00
parent 735ab03d6e
commit 401978a0b4
88 changed files with 865 additions and 3642 deletions
+74
View File
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="definitions_16re855" name="definitions" namespace="http://camunda.org/schema/1.0/dmn" exporter="dmn-js (https://demo.bpmn.io/dmn)" exporterVersion="16.6.2">
<decision id="decision_02zhvl1" name="">
<decisionTable id="decisionTable_0k2npw5">
<input id="input1" label="Web Service" biodi:width="350">
<inputExpression id="inputExpression1" typeRef="string">
<text></text>
</inputExpression>
</input>
<input id="InputClause_0eqj4n9" label="Barcode (EAN 13)">
<inputExpression id="LiteralExpression_1u9u1as" typeRef="string">
<text></text>
</inputExpression>
</input>
<output id="output1" label="Country" name="" typeRef="string" />
<rule id="DecisionRule_0oklu3j">
<inputEntry id="UnaryTests_1bzd25m">
<text>"http://localhost:4321/randomize/nudger"</text>
</inputEntry>
<inputEntry id="UnaryTests_19vxqzm">
<text>string length(?)=13 and starts with(?, "3") and not matches(?, "^3[89]")</text>
</inputEntry>
<outputEntry id="LiteralExpression_01ucmmd">
<text>"France-Monaco"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_18xknsg">
<inputEntry id="UnaryTests_0i7s6qy">
<text>"http://localhost:4321/randomize/nudger"</text>
</inputEntry>
<inputEntry id="UnaryTests_0uflcxg">
<text>matches(?, "^46\d{11}$")</text>
</inputEntry>
<outputEntry id="LiteralExpression_0hpx07f">
<text>"Russia"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0jko2nu">
<inputEntry id="UnaryTests_1yeeeae">
<text>"http://localhost:4321/randomize/nudger"</text>
</inputEntry>
<inputEntry id="UnaryTests_0u30ape">
<text>string length(?)=13 and starts with(?, "560")</text>
</inputEntry>
<outputEntry id="LiteralExpression_0v8lp29">
<text>"Portugal"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1nsy4ze">
<inputEntry id="UnaryTests_1gw0lsa">
<text>"http://localhost:4321/randomize/nudger"</text>
</inputEntry>
<inputEntry id="UnaryTests_15tlrit">
<text>
matches(?, "^9[0-1]{1}\d{10}$")</text>
</inputEntry>
<outputEntry id="LiteralExpression_1hbw2ir">
<text>"AT"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1i8wl7f">
<inputEntry id="UnaryTests_1gvjpaa">
<text>"http://localhost:4321/randomize/nudger"</text>
</inputEntry>
<inputEntry id="UnaryTests_183xj46">
<text>matches(?, "^9[0-1]{1}\d{10}$")</text>
</inputEntry>
<outputEntry id="LiteralExpression_08v0zvo">
<text>"Austria"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>
+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="definitions_01gvi3e" name="definitions" namespace="http://camunda.org/schema/1.0/dmn" exporter="dmn-js (https://demo.bpmn.io/dmn)" exporterVersion="16.6.2">
<decision id="decision_1i2kko9" name="">
<decisionTable id="decisionTable_0gr70vc">
<input id="input1" label="GeonameID" biodi:width="192">
<inputExpression id="inputExpression1" typeRef="number">
<text>GeonameID</text>
</inputExpression>
</input>
<output id="output1" label="Country" name="Country" typeRef="string" />
<rule id="DecisionRule_00g5ohx">
<description>Cities with geonameId between 2967245 and 3038789 are in France</description>
<inputEntry id="UnaryTests_00ykcgn">
<text>includes(2967245, 3038789)</text>
</inputEntry>
<outputEntry id="LiteralExpression_03k0z7u">
<text>"France"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1w8cov6">
<description>Cities with geonameId between 3104316 and 3130616 are in Spain</description>
<inputEntry id="UnaryTests_1utcn4l">
<text>includes(3104316, 3130616)</text>
</inputEntry>
<outputEntry id="LiteralExpression_1yd23ys">
<text>"Spain"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0bqrzts">
<description>Cities with geonameId between 5881791 and 6185607 are in Spain</description>
<inputEntry id="UnaryTests_0ny4o6c">
<text>includes(5881791,6185607)</text>
</inputEntry>
<outputEntry id="LiteralExpression_1xdxvkd">
<text>"Canada"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>
+54
View File
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" id="definitions_16re855" name="definitions" namespace="http://camunda.org/schema/1.0/dmn" exporter="dmn-js (https://demo.bpmn.io/dmn)" exporterVersion="16.6.2">
<decision id="decision_02zhvl1" name="">
<decisionTable id="decisionTable_0k2npw5">
<input id="InputClause_0eqj4n9" label="Barcode (EAN 13)">
<inputExpression id="LiteralExpression_1u9u1as" typeRef="string">
<text></text>
</inputExpression>
</input>
<output id="output1" label="Country" name="" typeRef="string" />
<rule id="DecisionRule_0oklu3j">
<inputEntry id="UnaryTests_19vxqzm">
<text>string length(?)=13 and starts with(?, "3") and not matches(?, "^3[89]")</text>
</inputEntry>
<outputEntry id="LiteralExpression_01ucmmd">
<text>"France-Monaco"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_18xknsg">
<inputEntry id="UnaryTests_0uflcxg">
<text>matches(?, "^46\d{11}$")</text>
</inputEntry>
<outputEntry id="LiteralExpression_0hpx07f">
<text>"Russia"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0jko2nu">
<inputEntry id="UnaryTests_0u30ape">
<text>string length(?)=13 and starts with(?, "560")</text>
</inputEntry>
<outputEntry id="LiteralExpression_0v8lp29">
<text>"Portugal"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1nsy4ze">
<inputEntry id="UnaryTests_15tlrit">
<text>
matches(?, "^9[0-1]{1}\d{10}$")</text>
</inputEntry>
<outputEntry id="LiteralExpression_1hbw2ir">
<text>"AT"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1i8wl7f">
<inputEntry id="UnaryTests_183xj46">
<text>matches(?, "^9[0-1]{1}\d{10}$")</text>
</inputEntry>
<outputEntry id="LiteralExpression_08v0zvo">
<text>"Austria"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>