# Flowable's REST API

**URL:** <https://forum.flowable.org/t/flowables-rest-api/3125>\
**Category:** Flowable Engine\
**Created:** [December 26, 2018, 1:08am UTC](https://forum.flowable.org/t/flowables-rest-api/3125 "2018-12-26T01:08:37Z")\
**Posts on this page:** 13\
**Page:** 1

<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 26, 2018, 1:08am UTC](https://forum.flowable.org/t/flowables-rest-api/3125/1 "2018-12-26T01:08:37Z")

</div>

A tutorial style [post](https://robferguson.org/blog/2018/12/24/flowable-rest-api-part-1/) about working with Flowable’s REST API.

---

<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 26, 2018, 2:50am UTC](https://forum.flowable.org/t/flowables-rest-api/3125/2 "2018-12-26T02:50:31Z")

</div>

Great article, very intuitive, would save me a lot of time if I have read it a month ago 😉

---

<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:** [January 2, 2019, 3:01am UTC](https://forum.flowable.org/t/flowables-rest-api/3125/3 "2019-01-02T03:01:57Z")

</div>

[Flowable’s REST API - Part 2](https://robferguson.org/blog/2019/01/02/flowable-rest-api-part-2/)

How to use Angular, Angular Material and Flowable’s REST API to create a bespoke **Task List** component:

![task-list](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/9abf976e3a60d26d6b088825b7abe5c3e42e3887.png)

---

<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:** [January 2, 2019, 11:33pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/4 "2019-01-02T23:33:09Z")

</div>

[Flowable’s REST API - Part 3](https://robferguson.org/blog/2019/01/03/flowable-rest-api-part-3/)

How to use Angular, Angular Material and Flowable’s REST API to create a bespoke **Task** component:

![master-detail](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/flowable/original/1X/23b23d676d41350e60d41306bb1dd1c2994e71c9.png)

---

<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:** [January 7, 2019, 11:41am UTC](https://forum.flowable.org/t/flowables-rest-api/3125/5 "2019-01-07T11:41:17Z")

</div>

Still can’t get form data right?

---

<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:** [January 7, 2019, 12:01pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/6 "2019-01-07T12:01:21Z")

</div>

> Still can’t get form data right?

What do you mean?

---

<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:** [January 7, 2019, 12:03pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/7 "2019-01-07T12:03:14Z")

</div>

I didn’t see how you fetch task from in your angular project.

---

<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:** [January 7, 2019, 12:09pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/8 "2019-01-07T12:09:13Z")

</div>

> fetch task

Are you referring to GET [runtime/tasks](https://www.flowable.org/docs/userguide/index.html#restTasksGet)

```auto
  public getTasks(): Observable<TaskListModel> {

    const endpoint = '/flowable-task/process-api/runtime/tasks'

    return this.httpClient.get<any>(endpoint, httpOptions)
      .pipe(
        tap(() => {
          this.logger.info('TasksService: getTasks() completed');
        }),
        catchError(this.handleError('getTasks', []))
      );

  }

```

See: [Flowable’s REST API - Part 2](https://robferguson.org/blog/2019/01/02/flowable-rest-api-part-2/)

---

<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:** [January 7, 2019, 12:12pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/9 "2019-01-07T12:12:52Z")

</div>

No, not get task but get form, in [https://github.com/flowable/flowable-engine/issues/1471](https://github.com/flowable/flowable-engine/issues/1471) you discussed how to get a form instance of a task. But I didn’t see in your code. btw, I’m following your tutorial to build flowable from source, very helpful 🙂

---

<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:** [January 7, 2019, 12:21pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/10 "2019-01-07T12:21:50Z")

</div>

That’s correct, [Serendipity CRM](https://github.com/Robinyo/serendipity) doesn’t use Flowable’s Form engine.

If a task has an associated form ( `task.formKey` ) it will rendered using Serendipity’s [Dynamic Forms](https://github.com/Robinyo/serendipity/tree/master/projects/dynamic-forms) library.

See: [Flowable’s REST API - Part 3](https://robferguson.org/blog/2019/01/03/flowable-rest-api-part-3/)

---

<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:** [January 7, 2019, 12:43pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/11 "2019-01-07T12:43:04Z")

</div>

I see, you store the form data to firebase, that’s very clever.

I followed your instructions and have flowable 6.4.1snapshot running, but still can’t get form instance for completed task.

---

<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:** [January 7, 2019, 1:01pm UTC](https://forum.flowable.org/t/flowables-rest-api/3125/12 "2019-01-07T13:01:48Z")

</div>

You can view completed tasks in the Flowable Task App, so I assume its using the form instance.

---

<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:** [January 8, 2019, 7:15am UTC](https://forum.flowable.org/t/flowables-rest-api/3125/13 "2019-01-08T07:15:23Z")

</div>

Thanks, the form api works, but not so perfect.

> <https://github.com/flowable/flowable-engine/issues/1471#issuecomment-452197760>
