You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "gitgabrio (via GitHub)" <gi...@apache.org> on 2025/09/17 07:09:31 UTC

[I] Fix Decision retrieval from decision service inside DMNEventUtils [incubator-kie-issues]

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

   That [ticket](https://github.com/apache/incubator-kie-drools/issues/6448) evidentiate a NPE when a given decision could not be found by id.
   
   This [PR](https://github.com/apache/incubator-kie-drools/pull/6456) fixed the NPE itself, but did not address the root issue.
   
   At first analysis, it seem the problem lies in the fact that the following snippet
   
   `DecisionNode decisionNode = ((DMNResultImpl) event.getResult()).getModel().getDecisionById(id);`
   
   looks for the decision with given id in the current model.
   
   But if the `DecisionService` and the target `Decision` are defined inside an imported model, and the _ref id_ is not prefixed with the imported model namespace, then the target decision can't be found in the _importing_ model.
   
   Scope of the ticket is to verify the above, with same models used for [PR](https://github.com/apache/incubator-kie-drools/pull/6456), and fix the beavior, so that the target decision could be found even if in imported model.
   Otherwise, throw an exception or log an error
   
   @yesamer @ChinchuAjith @baldimir @AthiraHari77 
   
    
   
   
   
   


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