You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "jomarko (via GitHub)" <gi...@apache.org> on 2025/03/27 05:57:46 UTC
Re: [I] Type inference in DMN context row causes error message for decision tables with single output column [incubator-kie-issues]
jomarko commented on issue #356:
URL: https://github.com/apache/incubator-kie-issues/issues/356#issuecomment-2756806899
@ljmotta what model have you used? On my environment, I see this validation error:

```
<?xml version="1.0" encoding="UTF-8" ?>
<definitions xmlns="https://www.omg.org/spec/DMN/20230324/MODEL/" 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" expressionLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/" namespace="https://kie.org/dmn/_4C9AD55B-C91E-4185-8D2A-DDFCFB2B1386" id="_7A305F87-AF72-4CFB-86E4-2F80F29DC186" name="DMN_CDC0FAAF-904B-4C2D-B751-7187A7C1F8E1">
<businessKnowledgeModel name="tripple" id="_D55166B8-4089-47A8-8512-4C2E73B61432">
<variable name="tripple" id="_190C74FE-F1C3-4093-A17E-E1349C87ABD8" typeRef="string" />
<encapsulatedLogic label="tripple" typeRef="string" id="_AD8FE356-6A1A-4AA6-9F50-0F42F98B136F" kind="FEEL">
<formalParameter id="_5E3DE1CE-7298-4CD3-A267-CE6E568E0EDE" name="p" typeRef="string" />
<context id="_0C45D065-90A6-4AD2-850D-F6E6583B42E2" typeRef="string" label="result">
<contextEntry id="_C4F6299F-9F56-4737-8FC2-94BA7C6A0BD9">
<variable id="_7AFE603C-50B4-451D-88B0-32E8C573285E" name="double" typeRef="string" />
<literalExpression id="_9E8CF245-D53F-47BE-8D87-082B018F4AF8" typeRef="string" label="double">
<text>string join([p, p])</text>
</literalExpression>
</contextEntry>
<contextEntry id="_966E247F-9E01-4623-8EDB-FA50D5192DA3">
<decisionTable id="_EDC6BCFF-8309-4559-9732-9313EE21E351" typeRef="string" hitPolicy="UNIQUE" label="result">
<input id="_1313A29E-2161-4072-A63C-B37B3A0C810A">
<inputExpression id="_E0A0E989-B752-40A9-9B36-E54645A6425F" typeRef="string">
<text>double</text>
</inputExpression>
</input>
<output id="_123C157A-93CE-4A34-B0A5-A9AE6AE497F0" />
<annotation name="Annotations" />
<rule id="_C0DCEE28-EE24-46F2-A13E-13F51540BD63">
<inputEntry id="_C6F37D64-686C-48FC-91F5-5DF10D07A41D">
<text>-</text>
</inputEntry>
<outputEntry id="_285D2EEC-10E4-45A1-A149-DFB8076315C7">
<text>string join([double, p])</text>
</outputEntry>
<annotationEntry>
<text>// Your annotations here</text>
</annotationEntry>
</rule>
</decisionTable>
</contextEntry>
</context>
</encapsulatedLogic>
</businessKnowledgeModel>
<decision name="New Decision" id="_ED235CC2-CE93-4B6B-A1A8-58F01BEA899C">
<variable name="New Decision" id="_8B7D1E12-99FA-4A27-B717-517E6E917199" typeRef="string" />
<informationRequirement id="_A4883A7D-8D73-4E5E-A5D3-E82BE0461A47">
<requiredInput href="#_776A1ED4-E106-45DC-968B-9BCE4C831068" />
</informationRequirement>
<knowledgeRequirement id="_6AF37C48-3A7F-4CAC-A8A0-63785E907215">
<requiredKnowledge href="#_D55166B8-4089-47A8-8512-4C2E73B61432" />
</knowledgeRequirement>
<literalExpression id="_69FCA8F6-2072-4885-8E35-1B85B0F6E8F7" label="New Decision" typeRef="string">
<text>tripple(New Input Data)</text>
</literalExpression>
</decision>
<inputData name="New Input Data" id="_776A1ED4-E106-45DC-968B-9BCE4C831068">
<variable name="New Input Data" id="_DA120B34-2B7E-4EAF-9774-629EB94DBF93" typeRef="string" />
</inputData>
<dmndi:DMNDI>
<dmndi:DMNDiagram id="_697C04C1-4DB9-478C-B5CD-88C17F48D948" name="Default DRD" useAlternativeInputDataShape="false">
<di:extension>
<kie:ComponentsWidthsExtension>
<kie:ComponentWidths dmnElementRef="_69FCA8F6-2072-4885-8E35-1B85B0F6E8F7">
<kie:width>299</kie:width>
</kie:ComponentWidths>
<kie:ComponentWidths dmnElementRef="_0C45D065-90A6-4AD2-850D-F6E6583B42E2">
<kie:width>120</kie:width>
</kie:ComponentWidths>
<kie:ComponentWidths dmnElementRef="_9E8CF245-D53F-47BE-8D87-082B018F4AF8">
<kie:width>694</kie:width>
</kie:ComponentWidths>
<kie:ComponentWidths dmnElementRef="_EDC6BCFF-8309-4559-9732-9313EE21E351">
<kie:width>60</kie:width>
<kie:width>118</kie:width>
<kie:width>296</kie:width>
<kie:width>240</kie:width>
</kie:ComponentWidths>
</kie:ComponentsWidthsExtension>
</di:extension>
<dmndi:DMNShape id="_580A8D76-F7E2-45E9-A81D-12A7B63E8E17" dmnElementRef="_D55166B8-4089-47A8-8512-4C2E73B61432" isCollapsed="false" isListedInputData="false">
<dc:Bounds x="500" y="40" width="160" height="80" />
</dmndi:DMNShape>
<dmndi:DMNShape id="_E51221D9-A600-48B5-A812-46AE5A45212A" dmnElementRef="_ED235CC2-CE93-4B6B-A1A8-58F01BEA899C" isCollapsed="false" isListedInputData="false">
<dc:Bounds x="280" y="40" width="160" height="80" />
</dmndi:DMNShape>
<dmndi:DMNShape id="_CBD9935F-7F03-44EF-8BE5-4C7F5214CB9B" dmnElementRef="_776A1ED4-E106-45DC-968B-9BCE4C831068" isCollapsed="false" isListedInputData="false">
<dc:Bounds x="280" y="180" width="160" height="80" />
</dmndi:DMNShape>
<dmndi:DMNEdge id="_2B66AC99-9DD5-46A2-8762-AE01B0CF730F" dmnElementRef="_A4883A7D-8D73-4E5E-A5D3-E82BE0461A47" sourceElement="_CBD9935F-7F03-44EF-8BE5-4C7F5214CB9B" targetElement="_E51221D9-A600-48B5-A812-46AE5A45212A">
<di:waypoint x="360" y="220" />
<di:waypoint x="360" y="80" />
</dmndi:DMNEdge>
<dmndi:DMNEdge id="_62C5F672-7AAA-435B-97E9-BCBF5519FCDD" dmnElementRef="_6AF37C48-3A7F-4CAC-A8A0-63785E907215" sourceElement="_580A8D76-F7E2-45E9-A81D-12A7B63E8E17" targetElement="_E51221D9-A600-48B5-A812-46AE5A45212A">
<di:waypoint x="580" y="80" />
<di:waypoint x="360" y="80" />
</dmndi:DMNEdge>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org