Skip to content

Commit 4b161fe

Browse files
committed
clean up PersonMinAge.dmn
1 parent 6a9b7ef commit 4b161fe

File tree

1 file changed

+15
-51
lines changed

1 file changed

+15
-51
lines changed

library-api/src/main/resources/checks/age/PersonMinAge.dmn

Lines changed: 15 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@
3636
</dmn:knowledgeRequirement>
3737
<dmn:context id="_B499A169-67C3-4405-95A2-F5405AF19DC9">
3838
<dmn:contextEntry>
39-
<dmn:variable id="_5CA16BFD-AE11-4865-A2E5-828E7763A90C" name="dateOfBirth" typeRef="date"/>
39+
<dmn:variable id="_B49B8F85-5828-4851-B590-50F227A76944" name="dateOfBirth" typeRef="date"/>
4040
<dmn:literalExpression id="_4C11ABE5-B19B-4C63-B46B-755FF3A6FACC">
4141
<dmn:text>situation.people[id = parameters.personId].dateOfBirth[1]</dmn:text>
4242
</dmn:literalExpression>
4343
</dmn:contextEntry>
4444
<dmn:contextEntry>
45-
<dmn:variable id="_EBC0A5AB-1F8C-41E7-9D6B-D7AC9E7543E5" name="age" typeRef="number"/>
45+
<dmn:variable id="_7AB98FB9-B5F2-41C9-8C46-B3B627AD3A25" name="age" typeRef="number"/>
4646
<dmn:literalExpression id="_0E389038-35B8-42FF-8FAD-4E26290F0B80">
4747
<dmn:text>Age.as of date(dateOfBirth, parameters.asOfDate)</dmn:text>
4848
</dmn:literalExpression>
4949
</dmn:contextEntry>
5050
<dmn:contextEntry>
51-
<dmn:variable id="_C3861949-8A9C-4E6A-AF13-81C8349B5D91" name="result" typeRef="boolean"/>
51+
<dmn:variable id="_B368ED41-4240-44F1-97CE-8A885502D49C" name="result" typeRef="boolean"/>
5252
<dmn:literalExpression id="_0E389038-35B8-42FF-8FAD-4E26290F0B81">
5353
<dmn:text>age &gt;= parameters.minAge</dmn:text>
5454
</dmn:literalExpression>
@@ -68,15 +68,6 @@
6868
<dmn:extensionElements/>
6969
<dmn:variable id="_908E9DB1-2894-4743-950C-19A78CA16473" name="parameters" typeRef="tParameters"/>
7070
</dmn:inputData>
71-
<dmn:textAnnotation id="_A4AEFC61-376F-4A57-8961-AE037FDF8B2F" textFormat="text/plain">
72-
<dmn:text>personId, asOfDate, minimumAge</dmn:text>
73-
</dmn:textAnnotation>
74-
<dmn:textAnnotation id="_AFF3E03E-CE17-473F-9FDC-C24831F778C7" textFormat="text/plain">
75-
<dmn:text>space case because built-in DMN functions are like this</dmn:text>
76-
</dmn:textAnnotation>
77-
<dmn:textAnnotation id="_8F515B74-7FE2-4FE8-8C77-E1D869CC0CAE" textFormat="text/plain">
78-
<dmn:text>camel case because kogito tooling automatically uses this</dmn:text>
79-
</dmn:textAnnotation>
8071
<dmndi:DMNDI>
8172
<dmndi:DMNDiagram id="_621B5FFE-295D-41D7-8080-71E4CA60A241" name="DRG">
8273
<di:extension>
@@ -106,11 +97,11 @@
10697
<dmndi:StrokeColor red="0" green="0" blue="0"/>
10798
<dmndi:FontColor red="0" green="0" blue="0"/>
10899
</dmndi:DMNStyle>
109-
<dc:Bounds x="168" y="91" width="200" height="200"/>
100+
<dc:Bounds x="168" y="91" width="378" height="199"/>
110101
<dmndi:DMNLabel/>
111102
<dmndi:DMNDecisionServiceDividerLine>
112103
<di:waypoint x="168" y="191"/>
113-
<di:waypoint x="368" y="191"/>
104+
<di:waypoint x="546" y="191"/>
114105
</dmndi:DMNDecisionServiceDividerLine>
115106
</dmndi:DMNShape>
116107
<dmndi:DMNShape id="dmnshape-drg-_ACEED577-3BAE-4C6D-9F43-297A3A832E81" dmnElementRef="_ACEED577-3BAE-4C6D-9F43-297A3A832E81" isCollapsed="false">
@@ -119,7 +110,7 @@
119110
<dmndi:StrokeColor red="0" green="0" blue="0"/>
120111
<dmndi:FontColor red="0" green="0" blue="0"/>
121112
</dmndi:DMNStyle>
122-
<dc:Bounds x="188" y="134" width="160" height="50"/>
113+
<dc:Bounds x="283" y="129" width="160" height="50"/>
123114
<dmndi:DMNLabel/>
124115
</dmndi:DMNShape>
125116
<dmndi:DMNShape id="dmnshape-drg-_7E4E0F8D-FA5D-49EF-8A65-0FEB4B7C0951" dmnElementRef="_7E4E0F8D-FA5D-49EF-8A65-0FEB4B7C0951" isCollapsed="false">
@@ -128,16 +119,7 @@
128119
<dmndi:StrokeColor red="0" green="0" blue="0"/>
129120
<dmndi:FontColor red="0" green="0" blue="0"/>
130121
</dmndi:DMNStyle>
131-
<dc:Bounds x="147" y="318" width="100" height="50"/>
132-
<dmndi:DMNLabel/>
133-
</dmndi:DMNShape>
134-
<dmndi:DMNShape id="dmnshape-drg-_A4AEFC61-376F-4A57-8961-AE037FDF8B2F" dmnElementRef="_A4AEFC61-376F-4A57-8961-AE037FDF8B2F" isCollapsed="false">
135-
<dmndi:DMNStyle>
136-
<dmndi:FillColor red="255" green="255" blue="255"/>
137-
<dmndi:StrokeColor red="0" green="0" blue="0"/>
138-
<dmndi:FontColor red="0" green="0" blue="0"/>
139-
</dmndi:DMNStyle>
140-
<dc:Bounds x="415" y="319" width="253" height="50"/>
122+
<dc:Bounds x="226" y="318" width="100" height="50"/>
141123
<dmndi:DMNLabel/>
142124
</dmndi:DMNShape>
143125
<dmndi:DMNShape id="dmnshape-drg-_F4F5DB0A-F298-4519-9554-44344C6179FE" dmnElementRef="_F4F5DB0A-F298-4519-9554-44344C6179FE" isCollapsed="false">
@@ -146,7 +128,7 @@
146128
<dmndi:StrokeColor red="0" green="0" blue="0"/>
147129
<dmndi:FontColor red="0" green="0" blue="0"/>
148130
</dmndi:DMNStyle>
149-
<dc:Bounds x="278" y="318" width="98" height="50"/>
131+
<dc:Bounds x="415" y="318" width="98" height="50"/>
150132
<dmndi:DMNLabel/>
151133
</dmndi:DMNShape>
152134
<dmndi:DMNShape id="dmnshape-drg-_1919D943-09A4-4D5C-98A0-2B8377862E4C" dmnElementRef="included2:_1919D943-09A4-4D5C-98A0-2B8377862E4C" isCollapsed="false">
@@ -155,38 +137,20 @@
155137
<dmndi:StrokeColor red="0" green="0" blue="0"/>
156138
<dmndi:FontColor red="0" green="0" blue="0"/>
157139
</dmndi:DMNStyle>
158-
<dc:Bounds x="400" y="79" width="118" height="50"/>
159-
<dmndi:DMNLabel/>
160-
</dmndi:DMNShape>
161-
<dmndi:DMNShape id="dmnshape-drg-_AFF3E03E-CE17-473F-9FDC-C24831F778C7" dmnElementRef="_AFF3E03E-CE17-473F-9FDC-C24831F778C7" isCollapsed="false">
162-
<dmndi:DMNStyle>
163-
<dmndi:FillColor red="255" green="255" blue="255"/>
164-
<dmndi:StrokeColor red="0" green="0" blue="0"/>
165-
<dmndi:FontColor red="0" green="0" blue="0"/>
166-
</dmndi:DMNStyle>
167-
<dc:Bounds x="557" y="74" width="253" height="56"/>
168-
<dmndi:DMNLabel/>
169-
</dmndi:DMNShape>
170-
<dmndi:DMNShape id="dmnshape-drg-_8F515B74-7FE2-4FE8-8C77-E1D869CC0CAE" dmnElementRef="_8F515B74-7FE2-4FE8-8C77-E1D869CC0CAE" isCollapsed="false">
171-
<dmndi:DMNStyle>
172-
<dmndi:FillColor red="255" green="255" blue="255"/>
173-
<dmndi:StrokeColor red="0" green="0" blue="0"/>
174-
<dmndi:FontColor red="0" green="0" blue="0"/>
175-
</dmndi:DMNStyle>
176-
<dc:Bounds x="415" y="373" width="289" height="50"/>
140+
<dc:Bounds x="74" y="28.684210526315795" width="118" height="50"/>
177141
<dmndi:DMNLabel/>
178142
</dmndi:DMNShape>
179143
<dmndi:DMNEdge id="dmnedge-drg-_C3219D7A-ABD5-4FCC-B63F-0511B93B9BAE-AUTO-TARGET" dmnElementRef="_C3219D7A-ABD5-4FCC-B63F-0511B93B9BAE">
180-
<di:waypoint x="197" y="343"/>
181-
<di:waypoint x="268" y="184"/>
144+
<di:waypoint x="276" y="343"/>
145+
<di:waypoint x="363" y="179"/>
182146
</dmndi:DMNEdge>
183147
<dmndi:DMNEdge id="dmnedge-drg-_4B4ED9D3-EF1A-46AB-9AB6-B5E2C2100C54-AUTO-TARGET" dmnElementRef="_4B4ED9D3-EF1A-46AB-9AB6-B5E2C2100C54">
184-
<di:waypoint x="327" y="343"/>
185-
<di:waypoint x="268" y="184"/>
148+
<di:waypoint x="464" y="343"/>
149+
<di:waypoint x="363" y="179"/>
186150
</dmndi:DMNEdge>
187151
<dmndi:DMNEdge id="dmnedge-drg-_8C5EF0F5-8039-48DD-BC32-25CDF2F93E9C" dmnElementRef="_8C5EF0F5-8039-48DD-BC32-25CDF2F93E9C">
188-
<di:waypoint x="459" y="104"/>
189-
<di:waypoint x="348" y="159"/>
152+
<di:waypoint x="133" y="53.684210526315795"/>
153+
<di:waypoint x="283" y="154"/>
190154
</dmndi:DMNEdge>
191155
</dmndi:DMNDiagram>
192156
</dmndi:DMNDI>

0 commit comments

Comments
 (0)