omg-dmn-taskforce / omg-dmn-spec

OMG Decision Model and Notation specification
https://www.omg.org/spec/DMN/
12 stars 9 forks source link

How to model a Decision Service? #1

Closed silberjan closed 6 years ago

silberjan commented 7 years ago

DMN 1.1 states the following:

"An instance of Definitions is composed of [...] zero or more decisionServices, which are instances of DecisionService [...]"

However i did not find a way to properly model a Decision Service that is compliant with the provided XSD. A decisionService element is not allowed inside the definitions element:

<xsd:element name="definitions" type="tDefinitions" substitutionGroup="namedElement" />
<xsd:complexType name="tDefinitions">
    <xsd:complexContent>
        <xsd:extension base="tNamedElement">
            <xsd:sequence>
                <xsd:element name="import" type="tImport" minOccurs="0" maxOccurs="unbounded" />
                <xsd:element name="itemDefinition" type="tItemDefinition" minOccurs="0" maxOccurs="unbounded" />
                <xsd:element ref="drgElement" minOccurs="0" maxOccurs="unbounded" />
                <xsd:element ref="artifact" minOccurs="0" maxOccurs="unbounded" />
                <xsd:element name="elementCollection" type="tElementCollection" minOccurs="0" maxOccurs="unbounded" />
                <xsd:element ref="businessContextElement" minOccurs="0" maxOccurs="unbounded" />
            </xsd:sequence>
            <xsd:attribute name="expressionLanguage" type="xsd:anyURI" use="optional" default="http://www.omg.org/spec/FEEL/20140401" />
            <xsd:attribute name="typeLanguage" type="xsd:anyURI" use="optional" default="http://www.omg.org/spec/FEEL/20140401" />
            <xsd:attribute name="namespace" type="xsd:anyURI" use="required" />
            <xsd:attribute name="exporter" type="xsd:string" use="optional" />
            <xsd:attribute name="exporterVersion" type="xsd:string" use="optional" />
        </xsd:extension>
    </xsd:complexContent>
</xsd:complexType>

What is the correct way to model a decision service? Am i missing something?

falko commented 6 years ago

This is a known issue in the DMN 1.1 XSD and has been fixed in 82d171eafa8be4e5659b6e47b46a76a025f15d0d