DMN how to not loose intermediate values

Hello everybody,

I have a java program that calls a bpmn to get a decision. The programm inputs 2 numbers to work with (value1 and value2). The bpmn calls a dmn to make a decision.
The dmn takes the values and decides a score. Based on that score a decision is made.
The bpmn gives the decision value to my java listener class “someClass”.
The problem I am facing is: I get the decision in my listener class, but I want to know, which scores my numbers value1 and value2 get in the score calculation.
My idea would be to put them in seperate decisions and let them be outputed in “decision”. But is there a more smarter way to do it?
The goal is, that I have in my java program not only the final decision. I want to have the numbers that were decided for value1 and value2 in the score calculation.

diagram_1.dmn (4.3 KB) diagram_1.bpmn (2.3 KB)

Thank you everybody. I hoped I described my problem well enough.

Hi @MarvinKern,

you should go with your idea. Currently, there is no way to get the intermediate output values of the required decisions. You get only the output values of the root decision that was invoked.

Possible workarounds:

  • adding the intermediate results to the root decision
  • collecting the results via literal expression
  • chaining the decisions via BPMN (aka decision flow)
  • querying the history

Related post:

Does this help you?

Best regards,
Philipp

1 Like

Hey Philipp,

Thank you very much for your answer.
It really helped me.

Best regards,
Marvin