Kusuma04-dev commented on PR #2912:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2912#issuecomment-2718624066

   > This PR is working fine for top level Decision Tables, but for nested ones 
I'm still seeing the max depth error.
   > 
   > Example of dmn file:
   > 
   > ```
   > <?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/_3CBBEBAE-E08B-4813-8DF1-A6D04202C724"; 
id="_47D65C59-0E73-453E-94C7-63D70C4F0BAB" 
name="DMN_45B6311A-EA35-4C07-9F38-E369F3A36875">
   >   <decision name="New Decision" id="_FF8D870E-601C-4798-B412-80C0AA1A9812">
   >     <variable name="New Decision" 
id="_B2949544-4E8A-4394-89AF-D39D3940E9E8" />
   >     <context id="_52DAA31C-A12E-42EB-8802-9A75D5DF3384" label="New 
Decision">
   >       <contextEntry id="_C316F005-2CFF-4BF3-AF4F-BE727AE1E5A6">
   >         <variable id="_F2CD345B-A880-4842-BDF9-DD657747BA2D" 
name="ContextEntry-1" />
   >         <decisionTable id="_530092D8-8FCA-483A-B099-FA882F341475" 
hitPolicy="UNIQUE" label="ContextEntry-1">
   >           <input id="_A6D91C4D-744B-4DA3-8255-CA70FDCC0090">
   >             <inputExpression id="_25EDEB88-DB4B-475B-8575-F81D6CB5A4B5">
   >               <text>Input-1</text>
   >             </inputExpression>
   >           </input>
   >           <output id="_2A2BD858-8B87-42BD-836F-2C1625E25DA1" />
   >           <annotation name="Annotations" />
   >         </decisionTable>
   >       </contextEntry>
   >       <contextEntry id="_EEAF5A81-E14E-4F30-A7C3-B47D37ED6751" />
   >     </context>
   >   </decision>
   >   <dmndi:DMNDI>
   >     <dmndi:DMNDiagram id="_D4883DFF-3B17-4F6B-937D-58DF840FE1AF" 
name="Default DRD" useAlternativeInputDataShape="false">
   >       <di:extension>
   >         <kie:ComponentsWidthsExtension>
   >           <kie:ComponentWidths />
   >         </kie:ComponentsWidthsExtension>
   >       </di:extension>
   >       <dmndi:DMNShape id="_C238E488-A5C9-4FB7-AAF8-85D3D2BB07D0" 
dmnElementRef="_FF8D870E-601C-4798-B412-80C0AA1A9812">
   >         <dc:Bounds x="112" y="112" width="160" height="80" />
   >       </dmndi:DMNShape>
   >     </dmndi:DMNDiagram>
   >   </dmndi:DMNDI>
   > </definitions>
   > ```
   
   Hi @ljmotta , Here is the dmn for nested decisionTable: ```
   <?xml version="1.0" encoding="UTF-8" ?>
   <definitions xmlns="https://www.omg.org/spec/DMN/20230324/MODEL/"; 
expressionLanguage="https://www.omg.org/spec/DMN/20230324/FEEL/"; 
namespace="https://kie.org/dmn/_7B4C6599-2C53-4033-B406-54C2C80F40E8"; 
id="_E414676D-186F-4D8D-8F16-3018EE361689" 
name="DMN_6F0CCA2F-99EC-45CA-A5CD-4A7254A716F9" 
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";>
     <decision name="New Decision" id="_C8C0389F-4A8E-4FD3-9852-49C254B2E936">
       <variable name="New Decision" id="_292443FE-7900-4A43-9A66-438E7DBFDDD1" 
/>
       <context id="_FD3EB91E-9C23-479F-9B81-C9319A62E4FB" label="New Decision">
         <contextEntry id="_0C74EA3B-226D-4ED8-93B9-2261F0CFA6B9">
           <variable id="_B675BAD8-5314-4D7B-8875-3FE51A0F389E" 
name="ContextEntry-1" />
           <decisionTable id="_B7C1B35B-1431-4074-9963-2DD9DF82EB40" 
hitPolicy="UNIQUE" label="ContextEntry-1">
             <input id="_1F043F16-F68B-4583-BE9C-3AD0D23E5F0C">
               <inputExpression id="_6AA1DECE-CE3E-49E6-B748-2DD900E78C77">
                 <text>Input-1</text>
               </inputExpression>
             </input>
             <output id="_C03C7E03-5A66-4163-B8B7-50CE0471DC8A" name="Output-1" 
/>
             <annotation name="Annotations" />
           </decisionTable>
         </contextEntry>
         <contextEntry id="_A6537197-2819-4387-814F-4C0A0067AC79" />
       </context>
     </decision>
     <dmndi:DMNDI>
       <dmndi:DMNDiagram id="_874D0C4C-1F02-43F9-9259-C334247717AC" 
name="Default DRD" useAlternativeInputDataShape="false">
         <di:extension>
           <kie:ComponentsWidthsExtension>
             <kie:ComponentWidths 
dmnElementRef="_FD3EB91E-9C23-479F-9B81-C9319A62E4FB">
               <kie:width>120</kie:width>
             </kie:ComponentWidths>
             <kie:ComponentWidths 
dmnElementRef="_B7C1B35B-1431-4074-9963-2DD9DF82EB40">
               <kie:width>60</kie:width>
               <kie:width>118</kie:width>
               <kie:width>118</kie:width>
               <kie:width>240</kie:width>
             </kie:ComponentWidths>
           </kie:ComponentsWidthsExtension>
         </di:extension>
         <dmndi:DMNShape id="_22ABE629-FB9E-42A5-8F74-1273AE0B1193" 
dmnElementRef="_C8C0389F-4A8E-4FD3-9852-49C254B2E936" isCollapsed="false" 
isListedInputData="false">
           <dc:Bounds x="80" y="60" width="160" height="80" />
         </dmndi:DMNShape>
       </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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to