Skip to content

Commit a837faf

Browse files
Dietrich SchultenDietrich Schulten
authored andcommitted
[kie-issues#6881]: Support included decision services in scesim
1 parent 94622c5 commit a837faf

6 files changed

Lines changed: 1548 additions & 16 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
20+
<?xml version="1.0" encoding="UTF-8" ?>
21+
<definitions xmlns="https://www.omg.org/spec/DMN/20240513/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20230324/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:kie="https://kie.org/dmn/extensions/1.0" expressionLanguage="https://www.omg.org/spec/DMN/20240513/FEEL/" namespace="https://kie.org/dmn/_D100CBD0-5691-43FC-8EBD-06B2DFA56BC9" id="_F09E84FE-4C8F-4F62-A5FE-8CB222AC949F" name="GeneralRulesDS">
22+
<itemDefinition id="_E21724D7-6E7A-4366-951B-EABB48969369" name="tRisk" isCollection="false" typeLanguage="https://www.omg.org/spec/DMN/20240513/FEEL/">
23+
<itemComponent id="_8A807A47-802D-499E-A580-E4A1EC4495B8" name="Level" isCollection="false">
24+
<typeRef>number</typeRef>
25+
</itemComponent>
26+
</itemDefinition>
27+
<itemDefinition id="_34602704-CD44-4E43-8281-734B0BD07D7F" name="tPerson" isCollection="false" typeLanguage="https://www.omg.org/spec/DMN/20240513/FEEL/">
28+
<itemComponent id="_8E7FC979-BADD-401D-9DCF-601943193B82" name="Age" isCollection="false">
29+
<typeRef>number</typeRef>
30+
</itemComponent>
31+
<itemComponent id="_58D994DA-2472-4568-BEB5-F821CC38B85C" name="Name" isCollection="false">
32+
<typeRef>string</typeRef>
33+
</itemComponent>
34+
</itemDefinition>
35+
<decision name="List of countries" id="_B79F61DE-CA7F-4741-984D-C9D2B6DAD1C8">
36+
<variable name="List of countries" id="_D0D30D68-408F-4B12-98AC-9A9B5029A704" typeRef="Any" />
37+
<list id="_E430FB25-68AF-4D03-93B2-DF1ED8E55057" typeRef="Any" label="List of countries">
38+
<literalExpression id="_1ED1D3E4-41EB-42CD-86E9-BC8BBCDB7B62">
39+
<text>&quot;Canada&quot;</text>
40+
</literalExpression>
41+
<literalExpression id="_1C125BE2-69F9-4F1C-AC0B-80191C2DB67D">
42+
<text>&quot;Cuba&quot;</text>
43+
</literalExpression>
44+
<literalExpression id="_DFDCA945-9008-4EDC-BF98-2D144B40ECFF">
45+
<text>&quot;Brazil&quot;</text>
46+
</literalExpression>
47+
</list>
48+
</decision>
49+
<decision name="Have strict Rules?" id="_F236BB34-0DD0-432F-AFA6-84B41D635A27">
50+
<variable name="Have strict Rules?" id="_4BEB03C0-0218-48D7-9920-1F71CCE2C005" typeRef="boolean" />
51+
<informationRequirement id="_BF9B15FF-2FFD-42D6-9F7F-AD81E9A93F9E">
52+
<requiredDecision href="#_B79F61DE-CA7F-4741-984D-C9D2B6DAD1C8" />
53+
</informationRequirement>
54+
<informationRequirement id="_0C475FCD-A85B-43A3-9A17-807D6133FB62">
55+
<requiredInput href="#_34DA3863-BD6D-4DEE-947E-9D9616336939" />
56+
</informationRequirement>
57+
<literalExpression id="_C77B3991-68B7-4646-B185-68A50AD1EA3C" typeRef="boolean" label="Have strict Rules?">
58+
<text>list contains(List of countries, Country )</text>
59+
</literalExpression>
60+
</decision>
61+
<inputData name="Country" id="_34DA3863-BD6D-4DEE-947E-9D9616336939">
62+
<variable name="Country" id="_E1E0120E-4A74-4ADA-9103-C3FA56715414" typeRef="string" />
63+
</inputData>
64+
<decisionService name="GeneralRulesDecisionService" id="_0666BBFF-AD2A-4614-9FFC-8C707B05A570">
65+
<variable name="GeneralRulesDecisionService" id="_A83627D6-4E25-43CA-9B8D-E603838D13F6" typeRef="boolean" />
66+
<outputDecision href="#_F236BB34-0DD0-432F-AFA6-84B41D635A27" />
67+
<encapsulatedDecision href="#_B79F61DE-CA7F-4741-984D-C9D2B6DAD1C8" />
68+
<inputData href="#_34DA3863-BD6D-4DEE-947E-9D9616336939" />
69+
</decisionService>
70+
<dmndi:DMNDI>
71+
<dmndi:DMNDiagram id="_6CC03C9E-E340-4970-8C6F-9B95E3D60588" name="Default DRD" useAlternativeInputDataShape="false">
72+
<di:extension>
73+
<kie:ComponentsWidthsExtension>
74+
<kie:ComponentWidths dmnElementRef="_C77B3991-68B7-4646-B185-68A50AD1EA3C">
75+
<kie:width>625</kie:width>
76+
</kie:ComponentWidths>
77+
<kie:ComponentWidths dmnElementRef="_E430FB25-68AF-4D03-93B2-DF1ED8E55057">
78+
<kie:width>50</kie:width>
79+
<kie:width>200</kie:width>
80+
</kie:ComponentWidths>
81+
<kie:ComponentWidths dmnElementRef="_1ED1D3E4-41EB-42CD-86E9-BC8BBCDB7B62">
82+
<kie:width>200</kie:width>
83+
</kie:ComponentWidths>
84+
<kie:ComponentWidths dmnElementRef="_1C125BE2-69F9-4F1C-AC0B-80191C2DB67D">
85+
<kie:width>200</kie:width>
86+
</kie:ComponentWidths>
87+
<kie:ComponentWidths dmnElementRef="_DFDCA945-9008-4EDC-BF98-2D144B40ECFF">
88+
<kie:width>200</kie:width>
89+
</kie:ComponentWidths>
90+
</kie:ComponentsWidthsExtension>
91+
</di:extension>
92+
<dmndi:DMNShape id="_4E6AA0CD-977E-4C35-B523-D065A1F61786" dmnElementRef="_0666BBFF-AD2A-4614-9FFC-8C707B05A570" isCollapsed="false" isListedInputData="false">
93+
<dc:Bounds x="740" y="200" width="320" height="320" />
94+
<dmndi:DMNDecisionServiceDividerLine id="_10166F08-EA48-45AA-8593-F4CFD5506083">
95+
<di:waypoint x="740" y="360" />
96+
<di:waypoint x="1060" y="360" />
97+
</dmndi:DMNDecisionServiceDividerLine>
98+
</dmndi:DMNShape>
99+
<dmndi:DMNShape id="_D31F0684-AA57-44C4-A903-03BD2E062F80" dmnElementRef="_F236BB34-0DD0-432F-AFA6-84B41D635A27" isCollapsed="false" isListedInputData="false">
100+
<dc:Bounds x="820" y="260" width="160" height="80" />
101+
</dmndi:DMNShape>
102+
<dmndi:DMNShape id="_9283C84E-11D3-4118-8472-650DD69C35DA" dmnElementRef="_B79F61DE-CA7F-4741-984D-C9D2B6DAD1C8" isCollapsed="false" isListedInputData="false">
103+
<dc:Bounds x="820" y="400" width="160" height="80" />
104+
</dmndi:DMNShape>
105+
<dmndi:DMNShape id="_22094BFD-2F97-4F99-AEA3-9B54E5B3033D" dmnElementRef="_34DA3863-BD6D-4DEE-947E-9D9616336939" isCollapsed="false" isListedInputData="false">
106+
<dc:Bounds x="520" y="260" width="160" height="80" />
107+
</dmndi:DMNShape>
108+
<dmndi:DMNEdge id="_FB030393-7279-4FD9-9BD2-2785CDAB878F" dmnElementRef="_BF9B15FF-2FFD-42D6-9F7F-AD81E9A93F9E" sourceElement="_9283C84E-11D3-4118-8472-650DD69C35DA" targetElement="_D31F0684-AA57-44C4-A903-03BD2E062F80">
109+
<di:waypoint x="900" y="440" />
110+
<di:waypoint x="900" y="340" />
111+
</dmndi:DMNEdge>
112+
<dmndi:DMNEdge id="_FB23E347-F7E5-43A7-B0A3-32AB570EC657" dmnElementRef="_0C475FCD-A85B-43A3-9A17-807D6133FB62" sourceElement="_22094BFD-2F97-4F99-AEA3-9B54E5B3033D" targetElement="_D31F0684-AA57-44C4-A903-03BD2E062F80">
113+
<di:waypoint x="600" y="300" />
114+
<di:waypoint x="820" y="300" />
115+
</dmndi:DMNEdge>
116+
</dmndi:DMNDiagram>
117+
</dmndi:DMNDI>
118+
</definitions>

0 commit comments

Comments
 (0)