# how end task after i finish work on  external form

**URL:** <https://community.ofelia.com/t/how-end-task-after-i-finish-work-on-external-form/10878>\
**Category:** Q&A\
**Created:** [16 August 2021 21:53 UTC](https://community.ofelia.com/t/how-end-task-after-i-finish-work-on-external-form/10878 "2021-08-16T21:53:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunds](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@sunds](https://community.ofelia.com/u/sunds)\
**Post date:** [16 August 2021 21:53 UTC](https://community.ofelia.com/t/how-end-task-after-i-finish-work-on-external-form/10878/1 "2021-08-16T21:53:09Z")

</div>

hello

please help

i have admission process i use external url in fill student information task . then i have next task that i use UI designer to build form&nbsp;

my question&nbsp;how go to next task&nbsp; after finish my work in external form (fill student information) .

or how add buttom that can finish external form

note : my external form is not inside bonita its page on cloud .

---

<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:** [17 August 2021 07:01 UTC](https://community.ofelia.com/t/how-end-task-after-i-finish-work-on-external-form/10878/2 "2021-08-17T07:01:46Z")

</div>

Hi !

You must call the POST method on the `userTask` resource of the [Bonita REST API](https://documentation.bonitasoft.com/bonita/2021.1/bpm-api#_execute_a_task_with_contract): `/API/bpm/userTask/:userTaskId/execution`

NOTE: as your form is not in the Bonita webapp context, you’ll need to:

1. [Enable CORS](https://documentation.bonitasoft.com/bonita/2021.1/enable-cors-in-tomcat-bundle) on the Bonita server
2. [Handle the authentication to the Bonita server](https://documentation.bonitasoft.com/bonita/2021.1/rest-api-authentication#_login_to_bonita) using the proper credentials
3. Retrieve the relevant `userTaskId` to execute (maybe passing it as an url parameter in the external form ?)
4. Make sure the task is assigned to user before executing it or use the `assign=true` URL parameter

HTH  
Romain
