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

   Modify `jitexecutor-dmn|jitexecutor/jitexecutor-dmn` so that the execution 
rest endpoint `/jitdmn/dmnresult`  returns a map with the information about 
executed branches of the DMN model.
   In the returned map, the key is rule or conditional id, and the value is the 
times the rule/condition has been hit
   
    
   
   Current */jitdmn/dmnresult* POST response:
   ```json
   {
       "namespace": "https://kie.org/dmn/_A3317FB1-7BF8-4904-A5F4-2CD63AF3AEC9";,
       "modelName": "DMN_A77074C1-21FE-4F7E-9753-F84661569AFC",
       "dmnContext": {
           "Risk Score": 20,
           "DTI": 15,
           "Loan Pre-Qualification": "Qualified",
           "id": "_CD8A1707-4F28-4F99-9D07-340F8E1A82AC",
           "Credit Score": "Excellent"
       },
       "messages": [],
       "decisionResults": [
           {
               "decisionId": "_6C207FD6-14EA-4480-A90D-074ABC97B54B",
               "decisionName": "Risk Score",
               "result": 20,
               "messages": [],
               "evaluationStatus": "SUCCEEDED"
           },
           {
               "decisionId": "_A1236581-4334-43F1-82A0-72CE204F07F9",
               "decisionName": "Loan Pre-Qualification",
               "result": "Qualified",
               "messages": [],
               "evaluationStatus": "SUCCEEDED"
           }
       ]
   } ```
    
   
   New */jitdmn/dmnresult* POST response with the addition of 
“evaluationHitIds” property in the “decisionResults” object:
   
   ```json
   {
       "namespace": "https://kie.org/dmn/_A3317FB1-7BF8-4904-A5F4-2CD63AF3AEC9";,
       "modelName": "DMN_A77074C1-21FE-4F7E-9753-F84661569AFC",
       "dmnContext": {
           "Risk Score": 20,
           "DTI": 15,
           "Loan Pre-Qualification": "Qualified",
           "id": "_CD8A1707-4F28-4F99-9D07-340F8E1A82AC",
           "Credit Score": "Excellent"
       },
       "messages": [],
       "decisionResults": [
           {
               "decisionId": "_6C207FD6-14EA-4480-A90D-074ABC97B54B",
               "decisionName": "Risk Score",
               "result": 20,
               "messages": [],
               "evaluationHitIds": {
                     "rule_1": x,
                      "rule_2": y,
                      ...
                 },
                "evaluationStatus": "SUCCEEDED"
           },
           {
               "decisionId": "_A1236581-4334-43F1-82A0-72CE204F07F9",
               "decisionName": "Loan Pre-Qualification",
               "result": "Qualified",
               "messages": [],
               "evaluationHitIds": [<expression_id1>],
               "evaluationStatus": "SUCCEEDED"
           }
       ]
   } 
   ```


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