-
Notifications
You must be signed in to change notification settings - Fork 1
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-SCE retrofit #2 #35
Open
barmac
wants to merge
22
commits into
omg-bpm-taskforces:dev
Choose a base branch
from
barmac:dmn-sce-1
base: dev
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
973bc3d
SCE-96/SCE-97 Update SCE to further backwards compatibility
falko ab9d5be
SCE-103/SCE-104 Mark abstract complexType as such
falko 6510b2b
SCE-101/SCE-102 Update importType Property Description
falko ee1b291
SCE-99/SCE-100 Add extensionElements container and remove other exten…
barmac 507f01f
SCE-105/SCE-106 Rename to tags and make it a list
falko c78a6b4
Merge SCE 1.0 Ballot 6 (#37)
falko e89af3d
SCE-96/SCE-97 make TextAnnotation backwards compatible
falko bc67e40
SCE-96/SCE-97 make Association and Relationship backwards compatible
falko 8868324
SCE-107/SCE-108 Remove Annotation
falko bb0d4ca
SCE-96/SCE-97 make import more backwards compatible with DMN
falko 6d3e271
feat: adjust DMN to extend SCE
barmac c528032
feat: use SCE extensions in DMN
barmac 981eed4
chore: add extensionElements to other elements
barmac a6c6640
chore: adjust to renamed types
barmac 9068d05
feat: adjust names
barmac 9d4a828
chore: remove unused namespace
barmac 0861eb6
chore: verify DI extension
barmac 972b4b2
test: validate with omg-dmn-spec examples
barmac f9073de
fix: re-add elements removed by accident
barmac 177a963
chore: remove unnecessary xsi:type attributes
barmac ee3f9e5
SCE: make modelElement optional
barmac 2620b6d
feat: reuse sce artifacts
barmac File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,48 @@ | ||
<?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/20230324/DMNDI/" | ||
xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" | ||
xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" | ||
xmlns:dc="http://www.omg.org/spec/SCE/20210830/DC" | ||
xmlns:di="http://www.omg.org/spec/SCE/20210830/DI" | ||
xmlns:scedi="https://www.omg.org/spec/SCE/20211108/SCEDI" | ||
targetNamespace="https://www.omg.org/spec/DMN/20230324/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:import namespace="http://www.omg.org/spec/SCE/20210830/DC" | ||
schemaLocation="../SCE/DC.xsd"/> | ||
<xsd:import namespace="http://www.omg.org/spec/SCE/20210830/DI" | ||
schemaLocation="../SCE/DI.xsd"/> | ||
<xsd:import namespace="https://www.omg.org/spec/SCE/20211108/SCEDI" | ||
schemaLocation="../SCE/SCEDI.xsd"/> | ||
|
||
<xsd:element name="DMNDI" type="dmndi:DMNDI"/> | ||
<xsd:element name="DMNDI" type="dmndi:DMNDI" substitutionGroup="scedi:diagrams"/> | ||
<xsd:element name="DMNDiagram" type="dmndi:DMNDiagram"/> | ||
<xsd:element name="DMNDiagramElement" type="di:DiagramElement"> | ||
<xsd:element name="DMNDiagramElement" type="di:tDiagramElement"> | ||
<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="DMNStyle" type="dmndi:DMNStyle" substitutionGroup="scedi:style"/> | ||
<xsd:element name="DMNLabel" type="dmndi:DMNLabel" substitutionGroup="scedi:label"/> | ||
<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:complexContent> | ||
<xsd:extension base="scedi:tDiagrams"> | ||
<xsd:sequence> | ||
<xsd:element ref="dmndi:DMNDiagram" minOccurs="0" maxOccurs="unbounded"/> | ||
<xsd:element ref="dmndi:DMNStyle" minOccurs="0" maxOccurs="unbounded"/> | ||
</xsd:sequence> | ||
</xsd:extension> | ||
</xsd:complexContent> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="DMNDiagram"> | ||
<xsd:complexContent> | ||
<xsd:extension base="di:Diagram"> | ||
<xsd:extension base="scedi:tDiagram"> | ||
<xsd:sequence> | ||
<xsd:element name="Size" type="dc:Dimension" minOccurs="0" maxOccurs="1"/> | ||
<xsd:element name="Size" type="dc:tDimension" minOccurs="0" maxOccurs="1"/> | ||
<xsd:element ref="dmndi:DMNDiagramElement" minOccurs="0" maxOccurs="unbounded"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="useAlternativeInputDataShape" type="xsd:boolean" use="optional" default="false"/> | ||
|
@@ -45,9 +52,8 @@ | |
|
||
<xsd:complexType name="DMNShape"> | ||
<xsd:complexContent> | ||
<xsd:extension base="di:Shape"> | ||
<xsd:extension base="scedi:tShape"> | ||
<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"/> | ||
|
@@ -57,28 +63,23 @@ | |
</xsd:complexContent> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="DMNDecisionServiceDividerLine"> | ||
<xsd:complexType name="DMNDecisionServiceDividerLine"> | ||
<xsd:complexContent> | ||
<xsd:extension base="di:Edge"/> | ||
<xsd:extension base="scedi:tEdge"/> | ||
</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:extension base="scedi:tEdge"> | ||
<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:extension base="scedi:tLabel"> | ||
<xsd:sequence> | ||
<xsd:element name="Text" type="xsd:string" minOccurs="0" maxOccurs="1" /> | ||
</xsd:sequence> | ||
|
@@ -88,22 +89,9 @@ | |
|
||
<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"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has to stay because SCE fixed the typo. |
||
<xsd:attribute name="labelVerticalAlignment" type="dc:AlignmentKind"/> | ||
<xsd:extension base="scedi:tStyle"> | ||
</xsd:extension> | ||
</xsd:complexContent> | ||
</xsd:complexType> | ||
|
||
</xsd:schema> | ||
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.PHONY: all | ||
all: validate | ||
|
||
.PHONY: validate | ||
validate: | ||
find . -name '*.dmn' -exec xmllint --schema ../DMN15.xsd --noout {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions | ||
xmlns="https://www.omg.org/spec/DMN/20211108/MODEL/" | ||
xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" | ||
xmlns:dc="http://www.omg.org/spec/SCE/20210830/DC" | ||
xmlns:di="http://www.omg.org/spec/SCE/20210830/DI" | ||
xmlns:scedi="https://www.omg.org/spec/SCE/20211108/SCEDI" | ||
id="Definitions_1yjpawl" | ||
name="DRD" | ||
namespace="http://camunda.org/schema/1.0/dmn" | ||
> | ||
<decision id="Decision_1" name="Decision 1"> | ||
<informationRequirement id="InformationRequirement_1mk58yo"> | ||
<requiredInput href="#InputData_1" /> | ||
</informationRequirement> | ||
<decisionTable id="DecisionTable_0wgzwut"> | ||
<input id="Input_1"> | ||
<inputExpression id="InputExpression_1" typeRef="string"> | ||
<text></text> | ||
</inputExpression> | ||
</input> | ||
<output id="Output_1" typeRef="string" /> | ||
</decisionTable> | ||
</decision> | ||
<inputData id="InputData_1" name="Input" /> | ||
<dmndi:DMNDI> | ||
<dmndi:DMNDiagram> | ||
<dmndi:DMNShape dmnElementRef="Decision_1"> | ||
<dc:Bounds height="80" width="180" x="160" y="100" /> | ||
<scedi:sceElementRef>Decision_1</scedi:sceElementRef> | ||
</dmndi:DMNShape> | ||
<dmndi:DMNShape id="DMNShape_1a0wixn" dmnElementRef="InputData_1"> | ||
<dc:Bounds height="45" width="125" x="187" y="337" /> | ||
<scedi:sceElementRef>InputData_1</scedi:sceElementRef> | ||
</dmndi:DMNShape> | ||
<dmndi:DMNEdge id="DMNEdge_1r1zmhs" dmnElementRef="InformationRequirement_1mk58yo"> | ||
<di:waypoint x="250" y="337" /> | ||
<di:waypoint x="250" y="200" /> | ||
<di:waypoint x="250" y="180" /> | ||
</dmndi:DMNEdge> | ||
</dmndi:DMNDiagram> | ||
</dmndi:DMNDI> | ||
</definitions> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barmac these have to stay for the namespace.