# GET form correspinding to Task

**URL:** <https://forum.flowable.org/t/get-form-correspinding-to-task/2251>\
**Category:** Flowable Engine\
**Created:** [July 20, 2018, 6:56am UTC](https://forum.flowable.org/t/get-form-correspinding-to-task/2251 "2018-07-20T06:56:50Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [July 20, 2018, 6:56am UTC](https://forum.flowable.org/t/get-form-correspinding-to-task/2251/1 "2018-07-20T06:56:50Z")

</div>

# GET form for Task

Hi there!

This is my very first post in this forum so I’ll try to make it a good one.

At this moment, to GET the form I need to fill out I:

- **GET** _/runtime/tasks_  
I save the processDefinitionId, and formKey that I get from the task
- **GET** _/repository/process-definitions/{processDefinitionId}/form-definitions_  
I filter out the form I need using the formKey and saves the formId
- **GET** _/form-repository/form-definitions/{formDefinitionId}/resourcedata_

Now, I can finally see the form to which I have to fill out to be able to finish the task.

The process on how I obtain the form to which the task I need to complete, is in my opinion, too complicated and requires way to many calls to the flowable API to get something as simple as the form I need to fill out to complete a task.

Help me flowable forum, you’re my only hope.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [July 20, 2018, 9:46pm UTC](https://forum.flowable.org/t/get-form-correspinding-to-task/2251/2 "2018-07-20T21:46:32Z")

</div>

You’re right, in fact you could go from the task directly to the form model by the key. I believe the Java API allows this, but the REST API doesn’t,

What’s your use case? Displaying the form model when selecting a task from a list?

---

<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:** [July 26, 2018, 8:34am UTC](https://forum.flowable.org/t/get-form-correspinding-to-task/2251/3 "2018-07-26T08:34:56Z")

</div>

Thanks for the reply @joram

Why hasn’t this been implemented in the REST API if it’s implemented in the Java API?

Yes, a user will click on a task, if that task is to fill out a form, that form should be shown.

---

<div class="post-metadata">

**Author:** ![Florian\_Faist](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/florian_faist/32/635_2.png) [@Florian\_Faist](https://forum.flowable.org/u/Florian_Faist)\
**Post date:** [September 12, 2019, 8:24am UTC](https://forum.flowable.org/t/get-form-correspinding-to-task/2251/4 "2019-09-12T08:24:04Z")

</div>

Is there a solution to get the corresponding form to a taskid with a simple rest Request?
