# BPMN and DMN Integration, return intermediate decision results to the process engine

**URL:** <https://forum.camunda.io/t/bpmn-and-dmn-integration-return-intermediate-decision-results-to-the-process-engine/23988>\
**Category:** Discussion & Questions\
**Created:** [November 25, 2020, 1:04pm UTC](https://forum.camunda.io/t/bpmn-and-dmn-integration-return-intermediate-decision-results-to-the-process-engine/23988 "2020-11-25T13:04:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smith\_Johnson](https://forum.camunda.io/user_avatar/forum.camunda.io/smith_johnson/32/11858_2.png) [@smith\_Johnson](https://forum.camunda.io/u/smith_Johnson)\
**Post date:** [November 25, 2020, 1:04pm UTC](https://forum.camunda.io/t/bpmn-and-dmn-integration-return-intermediate-decision-results-to-the-process-engine/23988/1 "2020-11-25T13:04:32Z")

</div>

Hi,

I have a business rule task that is implemented by DMN, as shown below.

 ![image](https://forum.camunda.io/uploads/default/original/2X/e/ebfa6bc1fc67da3127455bafc51433492999e8d9.png)

The DRD looks like the following. The “Calculate credit score” decision table has an output “crediScore” (integer) which is used on “Evaluate client’s loan eligibility” decision table. The last decision table has an output “eligibility” (string).  
 ![image](https://forum.camunda.io/uploads/default/original/2X/3/327245548f9c2ed2fa9e50c70c0d00727531ac33.png)

What should I put on the business rule task properties panel, on the “result variable” field and on “Map decision result” field??

![image](https://forum.camunda.io/uploads/default/original/2X/a/a1fd40475c7d82a1cace46e58203d6c19ba856a5.png)

I want to return back to the workflow the both outputs (creditScore, eligibility) of the decision tables and not only the output of the decision table that is higher in hierarchy (here is eligibility).

Should I also add something on the “Input/Output” tab?  
 ![image](https://forum.camunda.io/uploads/default/original/2X/e/e53f88ec70dc4fb57b7219a83492b56d87073955.png)

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Philipp\_Ossler](https://forum.camunda.io/user_avatar/forum.camunda.io/philipp_ossler/32/25299_2.png) [@Philipp\_Ossler](https://forum.camunda.io/u/Philipp_Ossler)\
**Post date:** [December 7, 2020, 4:29am UTC](https://forum.camunda.io/t/bpmn-and-dmn-integration-return-intermediate-decision-results-to-the-process-engine/23988/2 "2020-12-07T04:29:55Z")

</div>

Hi @smith_Johnson,

thank you for raising this up.

> [@smith\_Johnson](#):
>
> I want to return back to the workflow the both outputs (creditScore, eligibility) of the decision tables and not only the output of the decision table that is higher in hierarchy (here is eligibility).

The DMN engine returns only the result of the root decision. In this case, it is the result of the “eligibility” decision. There is no way to configure the business rule task to return something else.

Instead, you need to include everything in the root decision that should be returned.

One common way is to include the result of the required decision as an output of the root decision. Here, you would add an output “creditScore” in the “eligibility” decision. The output entry is equal to the name of the output, for example, “creditScore”.

Does this help you?

Related thread: [Get complete tree of decisions of DMN instance from REST API](https://forum.camunda.io/t/get-complete-tree-of-decisions-of-dmn-instance-from-rest-api/11893)

Best regards,  
Philipp

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 30, 2024, 12:46pm UTC](https://forum.camunda.io/t/bpmn-and-dmn-integration-return-intermediate-decision-results-to-the-process-engine/23988/3 "2024-01-30T12:46:17Z")

</div>

Closed on January 30, 2024, 12:46pm UTC


