-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(protocol): provide default values in DMN deployment records
DMN resources that pass model validation but fail to deploy due to missing data, e.g. an empty decision name, can lead to unwritable data on the stream. A rejection for the deployment CREATE command can thus not be written due to MsgPack exceptions. This can run the message writer into an infinie loop of trying to write. Using proper defaults in the DMN deployment records lets the writer successfully write the deployment CREATE command rejection. (cherry picked from commit 05fe07a)
- Loading branch information
1 parent
b8be5b7
commit a8f7ee3
Showing
5 changed files
with
69 additions
and
20 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
25 changes: 25 additions & 0 deletions
25
engine/src/test/resources/dmn/decision-table-with-missing-decision-name.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,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" id="_6f87b3aa-d613-4c41-93ad-832f021c8318" name="definitions" namespace="http://camunda.org/schema/1.0/dmn"> | ||
<decision id="_51711_44808585-3491-42a8-87ea-3c4fcda46eff" name=""> | ||
<decisionTable id="_07c6fdc3-7bdf-459a-a016-2ae12e474bd2"> | ||
<input id="_f00d0717-d08a-4918-ad51-568788e92038" label="Percent Responsible (Loan Roles)"> | ||
<inputExpression id="_0b922041-84c3-47bf-b94c-1dd423c394ae" typeRef="number"> | ||
<text>proposedLoan.loanRoles.percentResponsible</text> | ||
</inputExpression> | ||
</input> | ||
<output id="_b304292d-98e5-4dde-8fbd-0de1981c97ea" label="" name="out" typeRef="string"> | ||
<outputValues id="UnaryTests_1yu7moy"> | ||
<text>"Approve","Decline","Review"</text> | ||
</outputValues> | ||
</output> | ||
<rule id="DecisionRule_1j6jzzn"> | ||
<inputEntry id="UnaryTests_105fhm8"> | ||
<text></text> | ||
</inputEntry> | ||
<outputEntry id="LiteralExpression_1ucr6zl"> | ||
<text>"Approve"</text> | ||
</outputEntry> | ||
</rule> | ||
</decisionTable> | ||
</decision> | ||
</definitions> |
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