# Flowable multi instance user task and form outcomes

**URL:** <https://forum.flowable.org/t/flowable-multi-instance-user-task-and-form-outcomes/5151>\
**Category:** Flowable Engine\
**Created:** [December 31, 2019, 6:43am UTC](https://forum.flowable.org/t/flowable-multi-instance-user-task-and-form-outcomes/5151 "2019-12-31T06:43:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayrshid99](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/ayrshid99/32/1424_2.png) [@ayrshid99](https://forum.flowable.org/u/ayrshid99)\
**Post date:** [December 31, 2019, 6:43am UTC](https://forum.flowable.org/t/flowable-multi-instance-user-task-and-form-outcomes/5151/1 "2019-12-31T06:43:07Z")

</div>

i have a porcess which looks like this

 ![flowable](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/7/787199c326b8f07eac0ff48954e1b509472014ae.png)

the user task in multi-instance task and has form attached to it where users can accept and reject the task.  
the requirement is if any of the user rejects the form the process should end and if all the users accept the task it should move further.

how can i achieve this?

---

<div class="post-metadata">

**Author:** ![tstephen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/tstephen/32/68_2.png) [@tstephen](https://forum.flowable.org/u/tstephen)\
**Post date:** [December 31, 2019, 11:36pm UTC](https://forum.flowable.org/t/flowable-multi-instance-user-task-and-form-outcomes/5151/2 "2019-12-31T23:36:46Z")

</div>

I would switch your accepted and rejected paths and use a terminate end event in the case that any user rejects. The accepted path should (ultimately) end in a regular end event as it does now.

However you will need to take care of what happens if the rejection does not come from the first user. Say that service task has executed one or more times and then the rejection occurs. Is some compensation required to undo the service task executions?

Best, Tim

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [January 1, 2020, 4:26pm UTC](https://forum.flowable.org/t/flowable-multi-instance-user-task-and-form-outcomes/5151/4 "2020-01-01T16:26:09Z")

</div>

You can use a multi-instance subprocess with an error boundary event. Any instance that rejects takes the path to the error throwing end point in the sub process:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/flowable/original/2X/6/6b629f690321ed7ea8137c53cc1e6f30c549bd69.png)
