# REST api for HumanTask filter by process name?

**URL:** <https://community.ofelia.com/t/rest-api-for-humantask-filter-by-process-name/7589>\
**Category:** Q&A\
**Created:** [11 July 2016 14:01 UTC](https://community.ofelia.com/t/rest-api-for-humantask-filter-by-process-name/7589 "2016-07-11T14:01:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.lapierre](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@g.lapierre](https://community.ofelia.com/u/g.lapierre)\
**Post date:** [11 July 2016 14:01 UTC](https://community.ofelia.com/t/rest-api-for-humantask-filter-by-process-name/7589/1 "2016-07-11T14:01:33Z")

</div>

I am using the humanTask REST API to display users with their pending tasks for a given process.

To do this I get the latest process definition based on process name. This gives me a processId that I then use in f=processId={{ processDef[0].id }} (not documented?).

Is there a way to filter on processName instead? The problem with my solution is that when I deploy a new version of the process I loose the humanTaskes for older definitions of the process.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [12 July 2016 14:01 UTC](https://community.ofelia.com/t/rest-api-for-humantask-filter-by-process-name/7589/2 "2016-07-12T14:01:55Z")

</div>

Hi Guillaume,

Unfortunately, that is not supported by the product.

As today, the only two solutions I could see are either implement a REST Api extension that cover your needs or loop on all the versions of the process on the client side.

Cheers

---

<div class="post-metadata">

**Author:** ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)\
**Post date:** [11 July 2016 14:37 UTC](https://community.ofelia.com/t/rest-api-for-humantask-filter-by-process-name/7589/3 "2016-07-11T14:37:39Z")

</div>

i should you to uncheck the database option in preferences of bonita local, with this change the database will not cleaned when you run the proces for second time.

---

<div class="post-metadata">

**Author:** ![g.lapierre](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@g.lapierre](https://community.ofelia.com/u/g.lapierre)\
**Post date:** [11 July 2016 14:44 UTC](https://community.ofelia.com/t/rest-api-for-humantask-filter-by-process-name/7589/4 "2016-07-11T14:44:01Z")

</div>

I am talking about a production environment where you deploy new process versions…

---

<div class="post-metadata">

**Author:** ![g.lapierre](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@g.lapierre](https://community.ofelia.com/u/g.lapierre)\
**Post date:** [12 July 2016 14:12 UTC](https://community.ofelia.com/t/rest-api-for-humantask-filter-by-process-name/7589/5 "2016-07-12T14:12:53Z")

</div>

Not the answer I expected but I assumed this would be the case.  
Thanks
