# Process End Event

**URL:** <https://community.ofelia.com/t/process-end-event/10189>\
**Category:** Q&A\
**Created:** [25 May 2020 14:01 UTC](https://community.ofelia.com/t/process-end-event/10189 "2020-05-25T14:01:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fatma.ghorbel\_142371](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fatma.ghorbel\_142371](https://community.ofelia.com/u/fatma.ghorbel_142371)\
**Post date:** [25 May 2020 14:01 UTC](https://community.ofelia.com/t/process-end-event/10189/1 "2020-05-25T14:01:57Z")

</div>

Good Afternoon, Since im working with Form external URL trying to execute the process externally , when I reach the final human task and execute it , I want an indication that my process is completed and I reached the end event , is there a way to do it using Rest API !?&nbsp;

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [27 May 2020 15:51 UTC](https://community.ofelia.com/t/process-end-event/10189/2 "2020-05-27T15:51:32Z")

</div>

Hi, you can use the `flowNode` rest api to search for the end event. See `/API/bpm/flowNode` in [documentation](https://documentation.bonitasoft.com/bonita/7.10/bpm-api#toc37)

HTH

Romain

---

<div class="post-metadata">

**Author:** ![fatma.ghorbel\_142371](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fatma.ghorbel\_142371](https://community.ofelia.com/u/fatma.ghorbel_142371)\
**Post date:** [27 May 2020 16:37 UTC](https://community.ofelia.com/t/process-end-event/10189/3 "2020-05-27T16:37:01Z")

</div>

I saw that the protal make this request Call&nbsp;`/bonita/API/bpm/archivedCase?c=1&d=started_by&d=processDefinitionId&f=sourceObjectId=${caseId}&p=0` at the end of the process , what is used for , to make sure that the state is completed ? can I use it ?

---

<div class="post-metadata">

**Author:** ![romain.bioteau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/romain.bioteau/32/720_2.png) [@romain.bioteau](https://community.ofelia.com/u/romain.bioteau)\
**Post date:** [28 May 2020 07:46 UTC](https://community.ofelia.com/t/process-end-event/10189/4 "2020-05-28T07:46:48Z")

</div>

You can have a look [here](https://documentation.bonitasoft.com/javadoc/api/7.10/org/bonitasoft/engine/bpm/process/ProcessInstanceState.html)for possible case state. Yes you can search archived cases by state. However, keep in mind that case archiving is asynchronous and can be disabled by the platform administrator.

If you have multiple end events in your process and need to know which one has been triggered then API/bpm/flowNode or API/bpm/archivedFlowNode can be used.

---

<div class="post-metadata">

**Author:** ![fatma.ghorbel\_142371](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fatma.ghorbel\_142371](https://community.ofelia.com/u/fatma.ghorbel_142371)\
**Post date:** [28 May 2020 12:38 UTC](https://community.ofelia.com/t/process-end-event/10189/5 "2020-05-28T12:38:22Z")

</div>

Well I didn't get how to use that URL ! Everything I want to know is that I reached the end of my process after executing my last task , so when I press the submit button , I want an indication that all the tasks are done , like in the portal !
