-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Incubator-kie-issues#1619] Correctly manage execution of invalid models #6200
Open
AthiraHari77
wants to merge
14
commits into
apache:main
Choose a base branch
from
AthiraHari77:incubator-kie-issues#1619
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
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
14 commits
Select commit
Hold shift + click to select a range
3659d20
[incubator-kie-issues#1605] Adding required model
0ee347f
Merge branch 'apache:main' into incubator-kie-issues#1619
AthiraHari77 9357e98
Merge branch 'apache:main' into incubator-kie-issues#1619
AthiraHari77 f2c9144
[incubator-kie-issues#1619] Code changes
4e0d07d
Merge branch 'apache:main' into incubator-kie-issues#1619
AthiraHari77 b2cf83b
Merge branch 'apache:main' into incubator-kie-issues#1619
AthiraHari77 e713f03
[incubator-kie-issues#1619] Code changes
49020f4
Merge branch 'incubator-kie-issues#1619' of github.com:AthiraHari77/i…
e90aac8
Merge branch 'apache:main' into incubator-kie-issues#1619
AthiraHari77 b51cb93
[incubator-kie-issues#1619] Code refactoring
6310666
[incubator-kie-issues#1619] Code cleanup
816ac31
Merge branch 'apache:main' into incubator-kie-issues#1619
AthiraHari77 df0ef60
[incubator-kie-issues#1619] Fix review comments
2e252fe
[incubator-kie-issues#1619] Fix review comments
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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
54 changes: 54 additions & 0 deletions
54
kie-dmn/kie-dmn-test-resources/src/test/resources/invalid_models/DMNv1_5/InvalidFeel.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,54 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one | ||
or more contributor license agreements. See the NOTICE file | ||
distributed with this work for additional information | ||
regarding copyright ownership. The ASF licenses this file | ||
to you under the Apache License, Version 2.0 (the | ||
"License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, | ||
software distributed under the License is distributed on an | ||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations | ||
under the License. | ||
--> | ||
<definitions xmlns="https://www.omg.org/spec/DMN/20230324/MODEL/" expressionLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/" namespace="https://kie.org/dmn/_9DF86C49-C80A-4744-9F50-BCE65A89C98C" id="_A3750F9C-1684-4E92-9829-C4E7448E618B" name="DMN_33900B8B-73DD-4D1E-87E9-F6C3FE534B43" 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:kie="https://kie.org/dmn/extensions/1.0"> | ||
<inputData name="Person Age" id="_66BAE7BF-A7DA-410F-B3D9-C0497CC8383A"> | ||
<variable name="Person Age" id="_B1BE45B0-A2DE-45A9-932D-B6ED19BE1115" typeRef="number" /> | ||
</inputData> | ||
<decision name="Can Drive" id="_FCD824F2-E680-4D08-86AA-A6B38D12FEDF"> | ||
<variable id="_B6333FE5-44EC-4E30-AAF2-B888FBCBA9A4" typeRef="boolean" name="Can Drive" /> | ||
<informationRequirement id="_A1D1397A-3D2C-43F1-96CB-BFC7373B81DA"> | ||
<requiredInput href="#_66BAE7BF-A7DA-410F-B3D9-C0497CC8383A" /> | ||
</informationRequirement> | ||
<literalExpression id="_F477B6E0-C617-4087-9648-DE25A711C5F9" typeRef="boolean" label="Can Drive"> | ||
<text>Person Age >?= 18</text> | ||
</literalExpression> | ||
</decision> | ||
<dmndi:DMNDI> | ||
<dmndi:DMNDiagram id="_A36FB014-BA47-4B2E-AAE3-079E6A4CD418" name="Default DRD" useAlternativeInputDataShape="false"> | ||
<di:extension> | ||
<kie:ComponentsWidthsExtension> | ||
<kie:ComponentWidths dmnElementRef="_F477B6E0-C617-4087-9648-DE25A711C5F9"> | ||
<kie:width>190</kie:width> | ||
</kie:ComponentWidths> | ||
</kie:ComponentsWidthsExtension> | ||
</di:extension> | ||
<dmndi:DMNShape id="_7BEF4150-375E-4747-915B-1BDE22711237" dmnElementRef="_66BAE7BF-A7DA-410F-B3D9-C0497CC8383A" isCollapsed="false" isListedInputData="false"> | ||
<dc:Bounds x="100" y="300" width="160" height="80" /> | ||
</dmndi:DMNShape> | ||
<dmndi:DMNShape id="_B901E181-D6EA-4735-9286-B3B51A10534F" dmnElementRef="_FCD824F2-E680-4D08-86AA-A6B38D12FEDF" isCollapsed="false" isListedInputData="false"> | ||
<dc:Bounds x="100" y="100" width="160" height="80" /> | ||
</dmndi:DMNShape> | ||
<dmndi:DMNEdge id="_0D5B4E0B-BDD4-4FB8-BC32-E12FF9A049D0-AUTO-TARGET" dmnElementRef="_A1D1397A-3D2C-43F1-96CB-BFC7373B81DA" sourceElement="_7BEF4150-375E-4747-915B-1BDE22711237" targetElement="_B901E181-D6EA-4735-9286-B3B51A10534F"> | ||
<di:waypoint x="180" y="340" /> | ||
<di:waypoint x="180" y="140" /> | ||
</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.
HI @AthiraHari77
Many thanks for the PR.
I'm only slightly concerned about this assertion.
The logic here is that
decisions
could bedecisionsId
ordecisionName
(IINW)I'm afraid there could be some cases where an error message contains the decisionId or decisionName, but that the error is not in the decision itself (e.g. another element that refer that decision)