# Create a new instance of a subprocess after process instance variable updating

**URL:** <https://forum.flowable.org/t/create-a-new-instance-of-a-subprocess-after-process-instance-variable-updating/5243>\
**Category:** Flowable Engine\
**Created:** [January 15, 2020, 10:13am UTC](https://forum.flowable.org/t/create-a-new-instance-of-a-subprocess-after-process-instance-variable-updating/5243 "2020-01-15T10:13:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elc](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@elc](https://forum.flowable.org/u/elc)\
**Post date:** [January 15, 2020, 10:13am UTC](https://forum.flowable.org/t/create-a-new-instance-of-a-subprocess-after-process-instance-variable-updating/5243/1 "2020-01-15T10:13:58Z")

</div>

Hi,  
In my process, I have a variable ‘userList’ which contains a list [{‘name: userA’}]  
In my process, I want to recreate my subprocess for all user of my list.  
But, I want to recreate this subprocess also when I updated my list (process variable), and the new subprocess will run in parallel that the subprocess which already runs, and not when the first process is completed.

Does somebody know a solution?  
Thanks.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [January 17, 2020, 3:40pm UTC](https://forum.flowable.org/t/create-a-new-instance-of-a-subprocess-after-process-instance-variable-updating/5243/2 "2020-01-17T15:40:13Z")

</div>

That’s not possible through the model, however through the API you can add new elements to the multi instance by calling runtimeService#addMultiInstanceExecution when your list changes.
