# Decision table: multiple variables in same column

**URL:** <https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289>\
**Category:** Flowable Engine\
**Created:** [January 23, 2020, 2:10pm UTC](https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289 "2020-01-23T14:10:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abarazal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/abarazal/32/1551_2.png) [@abarazal](https://forum.flowable.org/u/abarazal)\
**Post date:** [January 23, 2020, 2:10pm UTC](https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289/1 "2020-01-23T14:10:01Z")

</div>

Is it possible to access more than one variable for the same column in the decision table editor?

I know that I could access variable “x” that represents an object, and this object could have all the data I could need, but I would like to work with more than one variable for the same column.

The purpose of this is to avoid hardcoded values in DMN table, so instead I could compare a variable with some value obtained from an external source.

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [January 23, 2020, 2:44pm UTC](https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289/2 "2020-01-23T14:44:11Z")

</div>

You can use expressions that evaluate to a boolean instead of a hardcoded value. For instance This is valid:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/6/66633f7080b362eb57f9e1ada2f3e8fa8c6115e8.png)

---

<div class="post-metadata">

**Author:** ![abarazal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/abarazal/32/1551_2.png) [@abarazal](https://forum.flowable.org/u/abarazal)\
**Post date:** [January 23, 2020, 2:53pm UTC](https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289/3 "2020-01-23T14:53:21Z")

</div>

How could I avoid using hardcoded values such as those underlined in the image below?

 ![decisionTable](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/8/84796708d94f5b4fa7d68a018a865f9db93f75e6.png)

---

<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 23, 2020, 2:58pm UTC](https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289/4 "2020-01-23T14:58:39Z")

</div>

Hi.

You can wrap the complete call in a bean method.  
Or you can replace the hardcoded values with a variable.

Regards,

Yvo

---

<div class="post-metadata">

**Author:** ![abarazal](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/abarazal/32/1551_2.png) [@abarazal](https://forum.flowable.org/u/abarazal)\
**Post date:** [January 23, 2020, 3:02pm UTC](https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289/5 "2020-01-23T15:02:52Z")

</div>

Hi @yvo. So it’s possible to access to multiple variables (like x and y, but I don’t want them contained in object z) in global context from within a rule (rule represented by a row in decision table)?

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [January 23, 2020, 3:09pm UTC](https://forum.flowable.org/t/decision-table-multiple-variables-in-same-column/5289/6 "2020-01-23T15:09:10Z")

</div>

Yes, in my example `x`, `y`, and `input` were all variables set on the process prior to the decision task. It uses standard expression evaluation, so all process variables as well as any registered beans and FunctionDelegates are available.
