# How to get current and next process state using REST API?

**URL:** <https://forum.flowable.org/t/how-to-get-current-and-next-process-state-using-rest-api/1411>\
**Category:** Flowable Engine\
**Created:** [January 10, 2018, 5:32am UTC](https://forum.flowable.org/t/how-to-get-current-and-next-process-state-using-rest-api/1411 "2018-01-10T05:32:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raviksoni25](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@raviksoni25](https://forum.flowable.org/u/raviksoni25)\
**Post date:** [January 10, 2018, 5:32am UTC](https://forum.flowable.org/t/how-to-get-current-and-next-process-state-using-rest-api/1411/1 "2018-01-10T05:32:45Z")

</div>

Hi ,

I have a requirement to show current and next process state though REST API.  
I am not able to figure out solution. Is there API exposed for 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:** [January 10, 2018, 10:18am UTC](https://forum.flowable.org/t/how-to-get-current-and-next-process-state-using-rest-api/1411/2 "2018-01-10T10:18:09Z")

</div>

Hi,

For the current process state you could query for tasks, if you have a user task focused process definition:

[http://www.flowable.org/docs/userguide/index.html#restTasksGet](http://www.flowable.org/docs/userguide/index.html#restTasksGet)

Or you could get a full overview of the active executions for the process instance:

[http://www.flowable.org/docs/userguide/index.html#restExecutionsGet](http://www.flowable.org/docs/userguide/index.html#restExecutionsGet)

The question about the next process state I’m not understanding yet. It depends on the process flow of course to know which activities will be next. You can get the BPMN model and traverse the model to get the information you are looking for with:

[http://www.flowable.org/docs/userguide/index.html#\_get\_a\_process\_definition\_bpmn\_model](http://www.flowable.org/docs/userguide/index.html#_get_a_process_definition_bpmn_model)

Best regards,

Tijs

---

<div class="post-metadata">

**Author:** ![raviksoni25](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@raviksoni25](https://forum.flowable.org/u/raviksoni25)\
**Post date:** [January 10, 2018, 11:32am UTC](https://forum.flowable.org/t/how-to-get-current-and-next-process-state-using-rest-api/1411/3 "2018-01-10T11:32:11Z")

</div>

Thanks @tijs  
does activities in model will be in same sequence?
