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

DMN14-194/DMN14-195 Add boxed iterator expression #16

Merged
merged 1 commit into from
Nov 8, 2021
Merged
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
44 changes: 44 additions & 0 deletions xsd/DMN13.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -521,4 +521,48 @@
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="tChildExpression">
<xsd:sequence>
<xsd:element type="tExpression"/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this element not have a name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is intended as more an interface than a concrete class

</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID" use="optional"/>
</xsd:complexType>
<xsd:complexType name="tTypedChildExpression">
<xsd:complexContent>
<xsd:extension base="tChildExpression">
<xsd:attribute name="typeRef" type="xsd:string" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="tIterator">
<xsd:complexContent>
<xsd:extension base="tExpression">
<xsd:sequence>
<xsd:element name="in" type="tTypedChildExpression"/>
</xsd:sequence>
<xsd:attribute name="iteratorVariable" type="xsd:string"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="for" type="tFor" substitutionGroup="expression"/>
<xsd:complexType name="tFor">
<xsd:complexContent>
<xsd:extension base="tIterator">
<xsd:sequence>
<xsd:element name="return" type="tChildExpression"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="every" type="tQuantified" substitutionGroup="expression"/>
<xsd:element name="some" type="tQuantified" substitutionGroup="expression"/>
<xsd:complexType name="tQuantified">
<xsd:complexContent>
<xsd:extension base="tIterator">
<xsd:sequence>
<xsd:element name="satisfies" type="tChildExpression"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>