# Bare minimum ReST API chain calls to do an app made from flowable web application

**URL:** <https://forum.flowable.org/t/bare-minimum-rest-api-chain-calls-to-do-an-app-made-from-flowable-web-application/2010>\
**Category:** Flowable Engine\
**Created:** [May 11, 2018, 9:37am UTC](https://forum.flowable.org/t/bare-minimum-rest-api-chain-calls-to-do-an-app-made-from-flowable-web-application/2010 "2018-05-11T09:37:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samsunoor](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@samsunoor](https://forum.flowable.org/u/samsunoor)\
**Post date:** [May 11, 2018, 9:37am UTC](https://forum.flowable.org/t/bare-minimum-rest-api-chain-calls-to-do-an-app-made-from-flowable-web-application/2010/1 "2018-05-11T09:37:29Z")

</div>

Hi, I am trying to figure out the big picture and then the details to do the steps.  
I already done an app following [flowable-modeler](https://www.flowable.org/docs/userguide/index.html#flowableModelerApp) web app and make it working

Now I want to do it using ReST API. But I am still confused figuring out the big picture.  
From the app made, what I know to do a full process using ReST API by far is this (please correct me if I’m wrong) :

1. Start a process instance
2. Do a process instance with completing task by task
3. After each task completion, if it doesn’t have any fixed assignment, we can assign it by via task update function API
4. If a task has a form need to be submit by user, show and submit the value

Technical breakdown (again, please correct me if I’m wrong) :

1. Start a process definition by POSTing to `flowable-rest/service/runtime/process-instances`
2. Process instance status is now in `provide vacation info` user task
3. List form fields by GETting from `flowable-rest/service/form/form-data?processDefinitionId={processDefinitionId}` or `taskId`
4. Submit form fields by POSTing to `flowable-rest/service/form/form-data` with request body providing taskId or processDefinitionId
5. Process instance status is now in `calculate number of days` script task
6. Execute script task to calculate number of days by call API foo **(?)**
7. Process instance status is now in `decision task`
8. Execute decision task by call API foobar **(?)**
9. Complete the task by POSTing to `flowable-rest/service/runtime/tasks/{taskId}` with request body containing field [action](https://www.flowable.org/docs/userguide/index.html#_task_actions)
10. The task will be in `Manager Approval` user task if amount of days \>= 10, the task and process instance will be fully completed if amount of days \< 10

Now I’m stuck at several things, those question marks and step 3 (getting form fields), it is not providing me the fields like I made on flowable web app. Giving me empty form properties

> ```
> {
> "formKey": null,
> "deploymentId": "12585",
> "processDefinitionId": "vacationRequest:6:12592",
> "processDefinitionUrl": "http://localhost:8080/flowable-rest/service/repository/process-definitions/vacationRequest:6:12592",
> "taskId": null,
> "taskUrl": null,
> "formProperties": []
> }
> 
> ```

Thanks alot for any help.  
Regards

---

<div class="post-metadata">

**Author:** ![Robinyo](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@Robinyo](https://forum.flowable.org/u/Robinyo)\
**Post date:** [December 24, 2018, 12:34am UTC](https://forum.flowable.org/t/bare-minimum-rest-api-chain-calls-to-do-an-app-made-from-flowable-web-application/2010/2 "2018-12-24T00:34:24Z")

</div>

This [post](https://robferguson.org/blog/2018/12/24/flowable-rest-api-part-1/) about Flowable’s REST API may help.

---

<div class="post-metadata">

**Author:** ![xcaptain](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/xcaptain/32/1286_2.png) [@xcaptain](https://forum.flowable.org/u/xcaptain)\
**Post date:** [December 25, 2018, 6:29am UTC](https://forum.flowable.org/t/bare-minimum-rest-api-chain-calls-to-do-an-app-made-from-flowable-web-application/2010/3 "2018-12-25T06:29:44Z")

</div>

Same problem here, this api `flowable-rest/service/form/form-data` can’t access to form data, I use `flowable-task/form-api/form/form-instance-model` instead, it’s documented in [https://github.com/flowable/flowable-engine/blob/eeebfd23af3571741b60e3f663f17c0ecc50a812/docs/public-api/references/swagger/form/flowable-swagger-form.yaml#L439-L462](https://github.com/flowable/flowable-engine/blob/eeebfd23af3571741b60e3f663f17c0ecc50a812/docs/public-api/references/swagger/form/flowable-swagger-form.yaml#L439-L462)

I’m using [https://www.flowable.org/docs/userguide/index.html#\_submit\_task\_form\_data](https://www.flowable.org/docs/userguide/index.html#_submit_task_form_data) to save a task form.

---

<div class="post-metadata">

**Author:** ![mikezerosix](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/mikezerosix/32/2160_2.png) [@mikezerosix](https://forum.flowable.org/u/mikezerosix)\
**Post date:** [June 13, 2021, 11:31am UTC](https://forum.flowable.org/t/bare-minimum-rest-api-chain-calls-to-do-an-app-made-from-flowable-web-application/2010/4 "2021-06-13T11:31:16Z")

</div>

But what is the chain when the process/case has start form ?  
When there are no instance of process/case or form.
