jomarko opened a new issue, #2084:
URL: https://github.com/apache/incubator-kie-issues/issues/2084

   We have [implemented 
](https://github.com/apache/incubator-kie-drools/commit/8cb84aa3fadac7360d6e1d569069876b06a8b73a)
 **strict** and **lenient** mode for DMN Engine. It seems that **strict** mode 
does not return appropriate **evaluationStatus**.
   
   If we check the model **DMN-MultipleInvalidElements** started with inputs:
   - "Score": 80
   - "New Input Data": "8888"
   - "Conditional Input": 107
   
   Then the response looks like [1]. The **evaluationStatus** is set to 
**EVALUATING** for all decision nodes from the model what is probably not 
appropriate
   
   ### Expected behavior
   TODO
   
   [1]
   ```
   {
       "namespace": "https://kie.org/dmn/_79591DB5-1EE1-4CBD-AA5D-2E3EDF31155E";,
       "modelName": "DMN_8F7C4323-412A-4E0B-9AEF-0F24C8F55282",
       "dmnContext": {
           "Score": 80,
           "New Input Data": "8888",
           "Round Up": "function Round Up( New Input Data )",
           "id": "_9E8B685E-73A5-44D1-A524-BF7D74912496",
           "Conditional Input": 107
       },
       "messages": [
           {
               "severity": "ERROR",
               "message": "FEEL ERROR while evaluating literal expression 
'round up(Conditional Input, 15000)': The parameter 'scale', in function round 
up(), must be in range between -6111 to 6176..",
               "messageType": "FEEL_EVALUATION_ERROR",
               "sourceId": "_43236F2B-9857-454F-8EA0-39B37C7519CF",
               "path": "DMN-MultipleInvalidElements.dmn",
               "level": "ERROR"
           },
           {
               "severity": "ERROR",
               "message": "Parameter 'New Input Data' is of type 'DMNType{ 
https://www.omg.org/spec/DMN/20240513/FEEL/ : number }' but the actual value 
'8888' is not an instance of that type; setting as null",
               "messageType": "PARAMETER_MISMATCH",
               "sourceId": "_D386D137-582B-49F9-B6F9-F341C3AC4B3E",
               "path": "DMN-MultipleInvalidElements.dmn",
               "level": "ERROR"
           }
       ],
       "decisionResults": [
           {
               "decisionId": "_A40F3AA4-2832-4D98-83F0-7D604F9A090F",
               "decisionName": "Decision1",
               "result": null,
               "messages": [],
               "evaluationHitIds": {},
               "evaluationStatus": "EVALUATING"
           },
           {
               "decisionId": "_3DC41DB9-BE1D-4289-A639-24AB57ED082D",
               "decisionName": "Decision2",
               "result": null,
               "messages": [],
               "evaluationHitIds": {
                   "_6F318F57-DA06-4F71-80AD-288E0BBB3A52": 1
               },
               "evaluationStatus": "EVALUATING"
           },
           {
               "decisionId": "_E9468D45-51EB-48DA-8B30-7D65696FDFB8",
               "decisionName": "Decision3",
               "result": null,
               "messages": [],
               "evaluationHitIds": {
                   "_80A8E701-D227-4536-879C-E75BBE7D4CEB": 1
               },
               "evaluationStatus": "EVALUATING"
           }
       ],
       "invalidElementPaths": [
           [
               "_3DC41DB9-BE1D-4289-A639-24AB57ED082D",
               "_2B147ECC-2457-4623-B841-3360D75F9F76",
               "_6F318F57-DA06-4F71-80AD-288E0BBB3A52",
               "_43236F2B-9857-454F-8EA0-39B37C7519CF"
           ],
           [
               "_09186183-0646-4CD0-AD67-A159E9F87F5E",
               "_D386D137-582B-49F9-B6F9-F341C3AC4B3E"
           ]
       ]
   }
   ```


-- 
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