# Return an instance of any type from the DMN decision table

**URL:** https://forum.flowable.org/t/return-an-instance-of-any-type-from-the-dmn-decision-table/3921
**Category:** Flowable Engine
**Created:** [May 22, 2019, 12:04pm UTC](https://forum.flowable.org/t/return-an-instance-of-any-type-from-the-dmn-decision-table/3921 "2019-05-22T12:04:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![max\_g](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@max\_g](https://forum.flowable.org/u/max_g)
#### Post date: [May 22, 2019, 12:04pm UTC](https://forum.flowable.org/t/return-an-instance-of-any-type-from-the-dmn-decision-table/3921/1 "2019-05-22T12:04:44Z")

</div>

Hi guys,  
Is it possible to return an instance of any custom type (not just string, number, boolean or date) as a result of decision table evaluation?  
For example, I have an expression that invokes my spring service in the output entry

```xml
<outputEntry id="LiteralExpression_1pe1wqy">
   <text>${my_SomeService.getSomeObject()}</text>
</outputEntry>

```

The service method may return, say, a POJO or JPA entity that I want to save in a process variable for later usage. I’m looking at `ExecutionVariableFactory` and guessing that it’s not possible, but maybe I’m missing something and there is a way to get what I want?
