Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMN 1.4 - 1152 boxed for #585

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,048 changes: 524 additions & 524 deletions TestCases/DMN13.xsd

Large diffs are not rendered by default.

216 changes: 108 additions & 108 deletions TestCases/DMNDI13.xsd
Original file line number Diff line number Diff line change
@@ -1,108 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
targetNamespace="https://www.omg.org/spec/DMN/20191111/DMNDI/"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://www.omg.org/spec/DMN/20180521/DC/"
schemaLocation="DC.xsd"/>
<xsd:import namespace="http://www.omg.org/spec/DMN/20180521/DI/"
schemaLocation="DI.xsd"/>
<xsd:element name="DMNDI" type="dmndi:DMNDI"/>
<xsd:element name="DMNDiagram" type="dmndi:DMNDiagram"/>
<xsd:element name="DMNDiagramElement" type="di:DiagramElement">
<xsd:annotation>
<xsd:documentation>This element should never be instantiated directly, but rather concrete implementation should. It is placed there only to be referred in the sequence</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="DMNShape" type="dmndi:DMNShape" substitutionGroup="dmndi:DMNDiagramElement"/>
<xsd:element name="DMNEdge" type="dmndi:DMNEdge" substitutionGroup="dmndi:DMNDiagramElement"/>
<xsd:element name="DMNStyle" type="dmndi:DMNStyle" substitutionGroup="di:Style"/>
<xsd:element name="DMNLabel" type="dmndi:DMNLabel"/>
<xsd:element name="DMNDecisionServiceDividerLine" type="dmndi:DMNDecisionServiceDividerLine"/>
<xsd:complexType name="DMNDI">
<xsd:sequence>
<xsd:element ref="dmndi:DMNDiagram" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="dmndi:DMNStyle" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DMNDiagram">
<xsd:complexContent>
<xsd:extension base="di:Diagram">
<xsd:sequence>
<xsd:element name="Size" type="dc:Dimension" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="dmndi:DMNDiagramElement" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DMNShape">
<xsd:complexContent>
<xsd:extension base="di:Shape">
<xsd:sequence>
<xsd:element ref="dmndi:DMNLabel" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="dmndi:DMNDecisionServiceDividerLine" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="dmnElementRef" type="xsd:QName" use="required"/>
<xsd:attribute name="isListedInputData" type="xsd:boolean" use="optional"/>
<xsd:attribute name="isCollapsed" type="xsd:boolean" use="optional" default="false"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DMNDecisionServiceDividerLine">
<xsd:complexContent>
<xsd:extension base="di:Edge"/>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DMNEdge">
<xsd:complexContent>
<xsd:extension base="di:Edge">
<xsd:sequence>
<xsd:element ref="dmndi:DMNLabel" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="dmnElementRef" type="xsd:QName" use="required"/>
<xsd:attribute name="sourceElement" type="xsd:QName" use="optional"/>
<xsd:attribute name="targetElement" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DMNLabel">
<xsd:complexContent>
<xsd:extension base="di:Shape">
<xsd:sequence>
<xsd:element name="Text" type="xsd:string" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DMNStyle">
<xsd:complexContent>
<xsd:extension base="di:Style">
<xsd:sequence>
<xsd:element name="FillColor" type="dc:Color" minOccurs="0" maxOccurs="1"/>
<xsd:element name="StrokeColor" type="dc:Color" minOccurs="0" maxOccurs="1"/>
<xsd:element name="FontColor" type="dc:Color" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="fontFamily" type="xsd:string"/>
<xsd:attribute name="fontSize" type="xsd:double"/>
<xsd:attribute name="fontItalic" type="xsd:boolean"/>
<xsd:attribute name="fontBold" type="xsd:boolean"/>
<xsd:attribute name="fontUnderline" type="xsd:boolean"/>
<xsd:attribute name="fontStrikeThrough" type="xsd:boolean"/>
<xsd:attribute name="labelHorizontalAlignement" type="dc:AlignmentKind"/>
<xsd:attribute name="labelVerticalAlignment" type="dc:AlignmentKind"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/"
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
targetNamespace="https://www.omg.org/spec/DMN/20191111/DMNDI/"
elementFormDefault="qualified" attributeFormDefault="unqualified">

<xsd:import namespace="http://www.omg.org/spec/DMN/20180521/DC/"
schemaLocation="DC.xsd"/>
<xsd:import namespace="http://www.omg.org/spec/DMN/20180521/DI/"
schemaLocation="DI.xsd"/>

<xsd:element name="DMNDI" type="dmndi:DMNDI"/>
<xsd:element name="DMNDiagram" type="dmndi:DMNDiagram"/>
<xsd:element name="DMNDiagramElement" type="di:DiagramElement">
<xsd:annotation>
<xsd:documentation>This element should never be instantiated directly, but rather concrete implementation should. It is placed there only to be referred in the sequence</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="DMNShape" type="dmndi:DMNShape" substitutionGroup="dmndi:DMNDiagramElement"/>
<xsd:element name="DMNEdge" type="dmndi:DMNEdge" substitutionGroup="dmndi:DMNDiagramElement"/>
<xsd:element name="DMNStyle" type="dmndi:DMNStyle" substitutionGroup="di:Style"/>
<xsd:element name="DMNLabel" type="dmndi:DMNLabel"/>
<xsd:element name="DMNDecisionServiceDividerLine" type="dmndi:DMNDecisionServiceDividerLine"/>

<xsd:complexType name="DMNDI">
<xsd:sequence>
<xsd:element ref="dmndi:DMNDiagram" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="dmndi:DMNStyle" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="DMNDiagram">
<xsd:complexContent>
<xsd:extension base="di:Diagram">
<xsd:sequence>
<xsd:element name="Size" type="dc:Dimension" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="dmndi:DMNDiagramElement" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="DMNShape">
<xsd:complexContent>
<xsd:extension base="di:Shape">
<xsd:sequence>
<xsd:element ref="dmndi:DMNLabel" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="dmndi:DMNDecisionServiceDividerLine" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="dmnElementRef" type="xsd:QName" use="required"/>
<xsd:attribute name="isListedInputData" type="xsd:boolean" use="optional"/>
<xsd:attribute name="isCollapsed" type="xsd:boolean" use="optional" default="false"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="DMNDecisionServiceDividerLine">
<xsd:complexContent>
<xsd:extension base="di:Edge"/>
</xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="DMNEdge">
<xsd:complexContent>
<xsd:extension base="di:Edge">
<xsd:sequence>
<xsd:element ref="dmndi:DMNLabel" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="dmnElementRef" type="xsd:QName" use="required"/>
<xsd:attribute name="sourceElement" type="xsd:QName" use="optional"/>
<xsd:attribute name="targetElement" type="xsd:QName" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="DMNLabel">
<xsd:complexContent>
<xsd:extension base="di:Shape">
<xsd:sequence>
<xsd:element name="Text" type="xsd:string" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="DMNStyle">
<xsd:complexContent>
<xsd:extension base="di:Style">
<xsd:sequence>
<xsd:element name="FillColor" type="dc:Color" minOccurs="0" maxOccurs="1"/>
<xsd:element name="StrokeColor" type="dc:Color" minOccurs="0" maxOccurs="1"/>
<xsd:element name="FontColor" type="dc:Color" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="fontFamily" type="xsd:string"/>
<xsd:attribute name="fontSize" type="xsd:double"/>
<xsd:attribute name="fontItalic" type="xsd:boolean"/>
<xsd:attribute name="fontBold" type="xsd:boolean"/>
<xsd:attribute name="fontUnderline" type="xsd:boolean"/>
<xsd:attribute name="fontStrikeThrough" type="xsd:boolean"/>
<xsd:attribute name="labelHorizontalAlignement" type="dc:AlignmentKind"/>
<xsd:attribute name="labelVerticalAlignment" type="dc:AlignmentKind"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

</xsd:schema>
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0001-input-data-string.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>FEEL Special-character Names</label>
<label>Data Type: String</label>
</labels>
<testCase id="001">
<description>Testing valid input</description>
<inputNode name="Full Name">
<value xsi:type="xsd:string">John Doe</value>
</inputNode>
<resultNode name="Greeting Message" type="decision">
<expected>
<value xsi:type="xsd:string">Hello John Doe</value>
</expected>
</resultNode>
</testCase>
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0001-input-data-string.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>FEEL Special-character Names</label>
<label>Data Type: String</label>
</labels>
<testCase id="001">
<description>Testing valid input</description>
<inputNode name="Full Name">
<value xsi:type="xsd:string">John Doe</value>
</inputNode>
<resultNode name="Greeting Message" type="decision">
<expected>
<value xsi:type="xsd:string">Hello John Doe</value>
</expected>
</resultNode>
</testCase>
</testCases>
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0002-input-data-number.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>FEEL Arithmetic</label>
<label>FEEL Special-character Names</label>
<label>Data Type: Number</label>
</labels>
<testCase id="001">
<description>Testing valid input</description>
<inputNode name="Monthly Salary">
<value xsi:type="xsd:decimal">10000</value>
</inputNode>
<resultNode name="Yearly Salary" type="decision">
<expected>
<value xsi:type="xsd:decimal">120000</value>
</expected>
</resultNode>
</testCase>
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0002-input-data-number.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>FEEL Arithmetic</label>
<label>FEEL Special-character Names</label>
<label>Data Type: Number</label>
</labels>
<testCase id="001">
<description>Testing valid input</description>
<inputNode name="Monthly Salary">
<value xsi:type="xsd:decimal">10000</value>
</inputNode>
<resultNode name="Yearly Salary" type="decision">
<expected>
<value xsi:type="xsd:decimal">120000</value>
</expected>
</resultNode>
</testCase>
</testCases>
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0003-input-data-string-allowed-values.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>Item Definition</label>
<label>FEEL Arithmetic</label>
<label>FEEL Special-character Names</label>
<label>Data Type: String</label>
</labels>
<testCase id="001">
<description>Testing valid input</description>
<inputNode name="Employment Status">
<value xsi:type="xsd:string">EMPLOYED</value>
</inputNode>
<resultNode name="Employment Status Statement" type="decision">
<expected>
<value xsi:type="xsd:string">You are EMPLOYED</value>
</expected>
</resultNode>
</testCase>
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0003-input-data-string-allowed-values.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>Item Definition</label>
<label>FEEL Arithmetic</label>
<label>FEEL Special-character Names</label>
<label>Data Type: String</label>
</labels>
<testCase id="001">
<description>Testing valid input</description>
<inputNode name="Employment Status">
<value xsi:type="xsd:string">EMPLOYED</value>
</inputNode>
<resultNode name="Employment Status Statement" type="decision">
<expected>
<value xsi:type="xsd:string">You are EMPLOYED</value>
</expected>
</resultNode>
</testCase>
</testCases>
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0100-feel-constants.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>FEEL Constants</label>
<label>Data Type: Boolean</label>
</labels>
<testCase id="001">
<description>Tests FEEL boolean constants</description>
<resultNode name="Decision1" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
<resultNode name="Decision2" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
<?xml version="1.0" encoding="UTF-8"?>
<testCases xmlns="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modelName>0100-feel-constants.dmn</modelName>
<labels>
<label>Compliance Level 2</label>
<label>Literal Expression</label>
<label>FEEL Constants</label>
<label>Data Type: Boolean</label>
</labels>
<testCase id="001">
<description>Tests FEEL boolean constants</description>
<resultNode name="Decision1" type="decision">
<expected>
<value xsi:type="xsd:boolean">true</value>
</expected>
</resultNode>
<resultNode name="Decision2" type="decision">
<expected>
<value xsi:type="xsd:boolean">false</value>
</expected>
</resultNode>
</testCase>
</testCases>
Loading
Loading