forked from apache/incubator-kie-drools
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DROOLS-1663 Kie DMN doesn't support IMPORT decisions between DMN files (
apache#1923) * DROOLS-1663 Kie DMN doesn't support IMPORT decisions between DMN files Add support for simple (mainly hardcoded) Decision imports * Small refactoring and Provide required data for cycle detection tests
- Loading branch information
1 parent
d399eb0
commit 8d589c5
Showing
11 changed files
with
142 additions
and
28 deletions.
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
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
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
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
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
20 changes: 20 additions & 0 deletions
20
kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/imports/Import_Spell_Greeting.dmn
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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<dmn11:definitions xmlns="http://www.trisotech.com/dmn/definitions/_d67f19e9-7835-4cad-9c80-16b8423cc392" xmlns:feel="http://www.omg.org/spec/FEEL/20140401" xmlns:include1="http://www.trisotech.com/dmn/definitions/_88f4fc88-1eb2-4188-a721-5720cf5565ce" xmlns:tc="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:triso="http://www.trisotech.com/2015/triso/modeling" xmlns:trisofeed="http://trisotech.com/feed" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="DMN Modeler" exporterVersion="6.0.8.201805241511" id="_d67f19e9-7835-4cad-9c80-16b8423cc392" name="Import Spell Greeting" namespace="http://www.trisotech.com/dmn/definitions/_d67f19e9-7835-4cad-9c80-16b8423cc392" triso:logoChoice="Default" xmlns:dmn11="http://www.omg.org/spec/DMN/20151101/dmn.xsd"> | ||
<dmn11:extensionElements/> | ||
<dmn11:import xmlns:drools="http://www.drools.org/kie/dmn/1.1" drools:modelName="Spell Greeting" drools:name="sg" importType="http://www.omg.org/spec/DMN/20180521/MODEL/" namespace="http://www.trisotech.com/dmn/definitions/_88f4fc88-1eb2-4188-a721-5720cf5565ce" triso:fileId="eyJmIjp7InNrdSI6IjlkM2ExMGEwLWM1YTUtNDIxNC04NmMyLTRhMTUxNTMwNWM1MCIsIm5hbWUiOiJTcGVsbCBHcmVldGluZyJ9fQ==" triso:fileName="Matteo Mortari/Spell Greeting"/> | ||
<dmn11:inputData id="_2a802a5a-9b63-4a9d-a6cd-b9661d7ae285" name="Person Name"> | ||
<dmn11:variable id="_d8b2285e-79d0-426c-9158-ec9bf5697a3c" name="Person Name" typeRef="feel:string"/> | ||
</dmn11:inputData> | ||
<dmn11:decision id="_6938dac5-9d7d-4416-8bba-25b41de3b6df" name="Say the Greeting to Person"> | ||
<dmn11:variable id="_a3b88e24-65d6-49a2-a325-2efb7f339072" name="Say the Greeting to Person"/> | ||
<dmn11:informationRequirement> | ||
<dmn11:requiredInput href="#_2a802a5a-9b63-4a9d-a6cd-b9661d7ae285"/> | ||
</dmn11:informationRequirement> | ||
<dmn11:informationRequirement> | ||
<dmn11:requiredDecision href="http://www.trisotech.com/dmn/definitions/_88f4fc88-1eb2-4188-a721-5720cf5565ce#_764902f0-f4bc-49d9-ba55-cc8f5216e52c"/> | ||
</dmn11:informationRequirement> | ||
<dmn11:literalExpression id="_80988e25-680c-49f4-a2ac-7cc79e0844c7"> | ||
<dmn11:text>sg.Spell Greeting + ", " + Person Name</dmn11:text> | ||
</dmn11:literalExpression> | ||
</dmn11:decision> | ||
</dmn11:definitions> |
10 changes: 10 additions & 0 deletions
10
kie-dmn/kie-dmn-core/src/test/resources/org/kie/dmn/core/imports/Spell_Greeting.dmn
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<dmn11:definitions xmlns="http://www.trisotech.com/dmn/definitions/_88f4fc88-1eb2-4188-a721-5720cf5565ce" xmlns:feel="http://www.omg.org/spec/FEEL/20140401" xmlns:tc="http://www.omg.org/spec/DMN/20160719/testcase" xmlns:triso="http://www.trisotech.com/2015/triso/modeling" xmlns:trisofeed="http://trisotech.com/feed" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="DMN Modeler" exporterVersion="6.0.8.201805241511" id="_88f4fc88-1eb2-4188-a721-5720cf5565ce" name="Spell Greeting" namespace="http://www.trisotech.com/dmn/definitions/_88f4fc88-1eb2-4188-a721-5720cf5565ce" triso:logoChoice="Default" xmlns:dmn11="http://www.omg.org/spec/DMN/20151101/dmn.xsd"> | ||
<dmn11:extensionElements/> | ||
<dmn11:decision id="_764902f0-f4bc-49d9-ba55-cc8f5216e52c" name="Spell Greeting"> | ||
<dmn11:variable id="_5e4b59f8-639d-42c6-971a-b7c47afe6ee5" name="Spell Greeting" typeRef="feel:string"/> | ||
<dmn11:literalExpression id="_5acb13b8-37a8-4a13-98b8-f4c31f416365"> | ||
<dmn11:text>"Hello"</dmn11:text> | ||
</dmn11:literalExpression> | ||
</dmn11:decision> | ||
</dmn11:definitions> |