# Unable to execute decisions using dmnRuleService

**URL:** <https://forum.flowable.org/t/unable-to-execute-decisions-using-dmnruleservice/3201>\
**Category:** Flowable Engine\
**Created:** [January 9, 2019, 7:55am UTC](https://forum.flowable.org/t/unable-to-execute-decisions-using-dmnruleservice/3201 "2019-01-09T07:55:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav-israni](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@gaurav-israni](https://forum.flowable.org/u/gaurav-israni)\
**Post date:** [January 9, 2019, 7:55am UTC](https://forum.flowable.org/t/unable-to-execute-decisions-using-dmnruleservice/3201/1 "2019-01-09T07:55:26Z")

</div>

![Screenshot%20from%202019-01-09%2013-23-27](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/2X/e/efaa8a3bebe939dc9fc74a9340e43d4261f6375e.png)

This is my DB entry for ACT\_DMN\_DEPLOYMENT\_RESOURCE which has a deployed decision with id : decisionnew2.

But when I try to execute it using dmnRuleService, it is unable to find the decision.  
Code I have written:  
DmnRuleService dmnRuleService = dmnEngine.getDmnRuleService();  
Map\<String, Object\> inputVariables = new HashMap\<\>();  
inputVariables.put(“date1”, new Date());  
inputVariables.put(“date2”, new Date());  
Map\<String, Object\> result = dmnRuleService.createExecuteDecisionBuilder()  
.decisionKey(“decisionnew2”).tenantId(“abcd”)  
.variables(inputVariables)  
.executeWithSingleResult();

It is giving the following exception  
org.flowable.common.engine.api.FlowableObjectNotFoundException: no decisions deployed with key ‘decisionnew2’ for tenant identifier ‘abcd’

Does the dmnRuleService look in some other table to execute the result ?  
Please have a look and help.

---

<div class="post-metadata">

**Author:** ![yvo](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/yvo/32/2231_2.png) [@yvo](https://forum.flowable.org/u/yvo)\
**Post date:** [January 9, 2019, 8:24am UTC](https://forum.flowable.org/t/unable-to-execute-decisions-using-dmnruleservice/3201/2 "2019-01-09T08:24:20Z")

</div>

Hi,

The lookup of the key and tenant is done via ACT\_DMN\_DECISION\_TABLE. The actual DMN XML is fetched from the ACT\_DMN\_DEPLOYMENT\_RESOURCE using the deploymentId and resourceName.

I would advice you to use the Java / REST APIs to find info like this first.

F.e. dmnRepositoryService.createDecisionTableQuery().list() to see what decision tables (with what key and tenant id) are deployed.

Regards,

Yvo

---

<div class="post-metadata">

**Author:** ![gaurav-israni](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@gaurav-israni](https://forum.flowable.org/u/gaurav-israni)\
**Post date:** [January 9, 2019, 9:13am UTC](https://forum.flowable.org/t/unable-to-execute-decisions-using-dmnruleservice/3201/3 "2019-01-09T09:13:10Z")

</div>

Closing this topic as you suggested. Please reply on that one.
