# includeCaseVariables is ignored in CMMN rest-api GET /cmmn-runtime/case-instances

**URL:** https://forum.flowable.org/t/includecasevariables-is-ignored-in-cmmn-rest-api-get-cmmn-runtime-case-instances/2573
**Category:** Flowable Engine
**Created:** [September 14, 2018, 12:12pm UTC](https://forum.flowable.org/t/includecasevariables-is-ignored-in-cmmn-rest-api-get-cmmn-runtime-case-instances/2573 "2018-09-14T12:12:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pstapleton](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/pstapleton/32/678_2.png) [@pstapleton](https://forum.flowable.org/u/pstapleton)
#### Post date: [September 14, 2018, 12:12pm UTC](https://forum.flowable.org/t/includecasevariables-is-ignored-in-cmmn-rest-api-get-cmmn-runtime-case-instances/2573/1 "2018-09-14T12:12:45Z")

</div>

Hi,

I have been using the CMMN rest-api GET /cmmn-runtime/case-instances to retreive case instances. I also wanted to retreive the case variables in the same request.

```
GET /cmmn-runtime/case-instances?includeCaseVariables=true

```

Unfortunately this request does not return the case variables in the response. I looked in the source code and saw that this boolean is ignored (with commented out code)

> <https://github.com/flowable/flowable-engine/blob/e84b0fb7cce3248ebaaef3a514ffe1c67aac914f/modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/caze/BaseCaseInstanceResource.java#L84>

Is there some reason that this code is commented out? There appears to be support for this in the `CaseInstanceQueryImpl` class. I could try to create a PR uncommenting out the code, but just wondering if there is some other problem with it that I am not seeing?

Regards,  
Paul

---

<div class="post-metadata">

### Author: ![wirob](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wirob/32/856_2.png) [@wirob](https://forum.flowable.org/u/wirob)
#### Post date: [October 1, 2018, 6:34am UTC](https://forum.flowable.org/t/includecasevariables-is-ignored-in-cmmn-rest-api-get-cmmn-runtime-case-instances/2573/2 "2018-10-01T06:34:45Z")

</div>

I’m wondering about this as well, anyone that has any answer to this?

---

<div class="post-metadata">

### Author: ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)
#### Post date: [October 1, 2018, 2:37pm UTC](https://forum.flowable.org/t/includecasevariables-is-ignored-in-cmmn-rest-api-get-cmmn-runtime-case-instances/2573/3 "2018-10-01T14:37:15Z")

</div>

Thanks for pointing at this. It’s fixed now on master.

Best regards,

Tijs
