<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions namespace="https://github.com/dmn-tck/tck/compliance-3-0016"
name="compliance-3-0016"
id="_51b7609d-c550-4660-b4c1-6ee5b4f1e8fe"
xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/">
<description>'some' and 'every' quantifiers</description>
<itemDefinition name="tItemPrice" id="tItemPrice">
<itemComponent name="itemName" id="_de166af3-e625-4572-bc70-cb3c3aa01ca8">
<typeRef>string</typeRef>
</itemComponent>
<itemComponent name="price" id="_d68f500e-3997-409e-8152-d454c34487d8">
<typeRef>number</typeRef>
</itemComponent>
</itemDefinition>
<itemDefinition isCollection="true" name="tPriceTable" id="tPriceTable">
<typeRef>tItemPrice</typeRef>
</itemDefinition>
<inputData name="priceTable2" id="_87bb4ba6-43bb-4fc5-a120-0c15c3901278">
<variable typeRef="tPriceTable" name="priceTable2"/>
</inputData>
<decision name="priceTable1" id="_a471e76a-64b1-44af-9ede-623f6c15b72e">
<variable typeRef="tPriceTable" name="priceTable1"/>
<relation>
<column name="itemName" typeRef="string" id="_b27cab6a-61cb-493c-9d68-b945a7a725f1"/>
<column name="price" typeRef="number" id="_379f9074-2bd8-496d-8077-c8713d006504"/>
<row id="_bb0e1dff-05cd-49c2-9e39-caef85fa82a5">
<literalExpression>
<text>"widget"</text>
</literalExpression>
<literalExpression>
<text>25</text>
</literalExpression>
</row>
<row id="_4f90e9d4-2244-4d63-bbb9-d47b3e1d62ee">
<literalExpression>
<text>"sprocket"</text>
</literalExpression>
<literalExpression>
<text>15</text>
</literalExpression>
</row>
<row id="_cf9445b7-4f8e-4618-a39a-acca4ae5a48e">
<literalExpression>
<text>"trinket"</text>
</literalExpression>
<literalExpression>
<text>1.5</text>
</literalExpression>
</row>
</relation>
</decision>
<decision name="everyGtTen1" id="_a747d388-e0c0-41e1-b3ef-2904ba1a5d63">
<variable typeRef="boolean" name="everyGtTen1"/>
<informationRequirement id="_30257a70-33cc-4b56-98c2-e524ce03c962">
<requiredDecision href="#_a471e76a-64b1-44af-9ede-623f6c15b72e"/>
</informationRequirement>
<literalExpression>
<text>every i in priceTable1 satisfies i.price > 10</text>
</literalExpression>
</decision>
<decision name="everyGtTen2" id="_e5194b4c-2191-45c3-a78c-723d04197dc6">
<variable typeRef="boolean" name="everyGtTen2"/>
<informationRequirement id="_5ba5ca54-b16e-4e67-9430-e94dd2f344da">
<requiredInput href="#_87bb4ba6-43bb-4fc5-a120-0c15c3901278"/>
</informationRequirement>
<literalExpression>
<text>every i in priceTable2 satisfies i.price > 10</text>
</literalExpression>
</decision>
<decision name="someGtTen1" id="_655236ba-669a-4a80-a07c-ec051f57a529">
<variable typeRef="boolean" name="someGtTen1"/>
<informationRequirement id="_8f037f85-7a70-461e-8b6a-67a703730490">
<requiredDecision href="#_a471e76a-64b1-44af-9ede-623f6c15b72e"/>
</informationRequirement>
<literalExpression>
<text>some i in priceTable1 satisfies i.price > 10</text>
</literalExpression>
</decision>
<decision name="someGtTen2" id="_41ed4571-ad86-4c9d-9d3b-7b813ae5cd28">
<variable typeRef="boolean" name="someGtTen2"/>
<informationRequirement id="eb1baab6-53b5-487a-8cf6-298a17628384">
<requiredInput href="#_87bb4ba6-43bb-4fc5-a120-0c15c3901278"/>
</informationRequirement>
<literalExpression>
<text>some i in priceTable2 satisfies i.price > 10</text>
</literalExpression>
</decision>
<decision name="everyGtTen3" id="_72422ed3-5088-4ed0-9ab6-dbcfe3a6cf48">
<variable typeRef="boolean" name="everyGtTen3"/>
<informationRequirement id="_9e6cc0d3-f8e9-4068-a47d-048a8befeb29">
<requiredDecision href="#_a471e76a-64b1-44af-9ede-623f6c15b72e"/>
</informationRequirement>
<knowledgeRequirement id="_475e9317-9cd8-40ef-bbbe-3ab39bdccdcc">
<requiredKnowledge href="#_d59cc17d-7f21-4706-8d10-47f7ee297b15"/>
</knowledgeRequirement>
<literalExpression>
<text>every i in priceTable1 satisfies gtTen(i.price)=true</text>
</literalExpression>
</decision>
<businessKnowledgeModel name="gtTen" id="_d59cc17d-7f21-4706-8d10-47f7ee297b15">
<variable typeRef="boolean" name="gtTen"/>
<encapsulatedLogic>
<formalParameter typeRef="number" name="theNumber"/>
<literalExpression typeRef="boolean">
<text>theNumber > 10</text>
</literalExpression>
</encapsulatedLogic>
</businessKnowledgeModel>
<decision name="values in a list" id="_valuesInAList">
<variable name="values in a list"/>
<literalExpression>
<text>[0, 1, 2, 3, 4, 5]</text>
</literalExpression>
</decision>
<decision name="decision_014" id="_decision_014">
<variable name="decision_014"/>
<informationRequirement>
<requiredDecision href="#_valuesInAList"/>
</informationRequirement>
<literalExpression>
<text>every i in values in a list satisfies even(i)</text>
</literalExpression>
</decision>
<decision name="decision_014a" id="_decision_014a">
<variable name="decision_014a"/>
<informationRequirement>
<requiredDecision href="#_valuesInAList"/>
</informationRequirement>
<literalExpression>
<text>some i in values in a list satisfies even(i)</text>
</literalExpression>
</decision>
<dmndi:DMNDI>
<dmndi:DMNDiagram id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_D1">
<dmndi:Size height="650.0" width="1310.0"/>
<dmndi:DMNShape dmnElementRef="_87bb4ba6-43bb-4fc5-a120-0c15c3901278" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s1">
<dc:Bounds height="60.0" width="153.0" x="258.0" y="331.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_a471e76a-64b1-44af-9ede-623f6c15b72e" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s2">
<dc:Bounds height="61.0" width="154.0" x="792.0" y="331.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_a747d388-e0c0-41e1-b3ef-2904ba1a5d63" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s3">
<dc:Bounds height="61.0" width="154.0" x="578.0" y="150.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_e5194b4c-2191-45c3-a78c-723d04197dc6" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s4">
<dc:Bounds height="61.0" width="154.0" x="150.0" y="150.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_655236ba-669a-4a80-a07c-ec051f57a529" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s5">
<dc:Bounds height="61.0" width="154.0" x="792.0" y="150.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_41ed4571-ad86-4c9d-9d3b-7b813ae5cd28" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s6">
<dc:Bounds height="61.0" width="154.0" x="364.0" y="150.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_72422ed3-5088-4ed0-9ab6-dbcfe3a6cf48" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s7">
<dc:Bounds height="61.0" width="154.0" x="1006.0" y="150.0"/>
</dmndi:DMNShape>
<dmndi:DMNShape dmnElementRef="_d59cc17d-7f21-4706-8d10-47f7ee297b15" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_s8">
<dc:Bounds height="61.0" width="154.0" x="1006.0" y="331.0"/>
</dmndi:DMNShape>
<dmndi:DMNEdge dmnElementRef="_30257a70-33cc-4b56-98c2-e524ce03c962" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_e1">
<di:waypoint x="869.0" y="331.0"/>
<di:waypoint x="655.0" y="211.0"/>
</dmndi:DMNEdge>
<dmndi:DMNEdge dmnElementRef="_5ba5ca54-b16e-4e67-9430-e94dd2f344da" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_e2">
<di:waypoint x="334.0" y="331.0"/>
<di:waypoint x="227.0" y="211.0"/>
</dmndi:DMNEdge>
<dmndi:DMNEdge dmnElementRef="_8f037f85-7a70-461e-8b6a-67a703730490" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_e3">
<di:waypoint x="869.0" y="331.0"/>
<di:waypoint x="869.0" y="211.0"/>
</dmndi:DMNEdge>
<dmndi:DMNEdge dmnElementRef="eb1baab6-53b5-487a-8cf6-298a17628384" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_e4">
<di:waypoint x="334.0" y="331.0"/>
<di:waypoint x="441.0" y="211.0"/>
</dmndi:DMNEdge>
<dmndi:DMNEdge dmnElementRef="_475e9317-9cd8-40ef-bbbe-3ab39bdccdcc" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_e5">
<di:waypoint x="1083.0" y="331.0"/>
<di:waypoint x="1083.0" y="211.0"/>
</dmndi:DMNEdge>
<dmndi:DMNEdge dmnElementRef="_9e6cc0d3-f8e9-4068-a47d-048a8befeb29" id="_d7643a02-a8fc-4a6f-a8a9-5c2881afea70_e6">
<di:waypoint x="869.0" y="331.0"/>
<di:waypoint x="1083.0" y="211.0"/>
</dmndi:DMNEdge>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>