Get output as a variable

Hi,
I have a model with DMN to find a discount.
image

Table:

The process is working and I’m also getting a output

But I don’t the see “Decision” as a variable at the end of the process.

I couldn’t find a good solution for this “problem”.
Do I have to use “Listeners”?

Thanks!

Can you upload your process model?
You may have forgotten to add an output variable on the business rules task.

You’re totally right!
I think I forgot to save… sorry!

In case someone gets the same problem:

1 Like

Hi @svenr,

Have a look at below docs
https://docs.camunda.org/manual/develop/user-guide/process-engine/decisions/bpmn-cmmn/#predefined-mapping-of-the-decision-result

If we have one matching rule and only one output as it looks like in your case then a singleEntry mapper could be used

<businessRuleTask id="businessRuleTask"
                  camunda:decisionRef="myDecision"
                  camunda:mapDecisionResult="singleEntry"
                  camunda:resultVariable="result" />