# How to dynamic add a multiUserTask in my processInstance，not processDefinition

**URL:** <https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684>\
**Category:** Camunda 7 Topics\
**Tags:** process-engine\
**Created:** [March 24, 2025, 7:49am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684 "2025-03-24T07:49:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanshui](https://forum.camunda.io/user_avatar/forum.camunda.io/shanshui/32/32302_2.png) [@shanshui](https://forum.camunda.io/u/shanshui)\
**Post date:** [March 24, 2025, 7:49am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/1 "2025-03-24T07:49:30Z")

</div>

i want to add a multiUserTask in my processInstance.And set TaskListener on  
this new node.And when this node done,i want it can be monitored by my ExecutionListener.

cannot modify processDefinition.only modify processInstance. 🤯  
thank you everyone

---

<div class="post-metadata">

**Author:** ![aravindhrs](https://forum.camunda.io/user_avatar/forum.camunda.io/aravindhrs/32/32503_2.png) [@aravindhrs](https://forum.camunda.io/u/aravindhrs)\
**Post date:** [March 24, 2025, 9:56am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/2 "2025-03-24T09:56:23Z")

</div>

@shanshui Once Process Definition is deployed to workflow engine it’s an immutable workflow definition file. Any changes to process definition will result in newer version and that’s need to be again deployed to the workflow engine.

---

<div class="post-metadata">

**Author:** ![shanshui](https://forum.camunda.io/user_avatar/forum.camunda.io/shanshui/32/32302_2.png) [@shanshui](https://forum.camunda.io/u/shanshui)\
**Post date:** [March 24, 2025, 10:12am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/4 "2025-03-24T10:12:46Z")

</div>

But in my project, need dynamic add a multiUserTask 😭

So I try to only modify processInstance 😭

---

<div class="post-metadata">

**Author:** ![shanshui](https://forum.camunda.io/user_avatar/forum.camunda.io/shanshui/32/32302_2.png) [@shanshui](https://forum.camunda.io/u/shanshui)\
**Post date:** [March 25, 2025, 6:39am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/5 "2025-03-25T06:39:02Z")

</div>

need help 🥲

---

<div class="post-metadata">

**Author:** ![herrier](https://forum.camunda.io/user_avatar/forum.camunda.io/herrier/32/29369_2.png) [@herrier](https://forum.camunda.io/u/herrier)\
**Post date:** [March 25, 2025, 2:53pm UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/6 "2025-03-25T14:53:37Z")

</div>

Hi @shanshui - I think what you are attempting to do is very difficult / impossible with the modification API. If you share the wider objective of the process then the community might have suggestions about how you can achieve the same without a need to do dynamic structural changes to the running process.

---

<div class="post-metadata">

**Author:** ![GotnOGuts](https://forum.camunda.io/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@GotnOGuts](https://forum.camunda.io/u/GotnOGuts)\
**Post date:** [March 25, 2025, 3:27pm UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/7 "2025-03-25T15:27:43Z")

</div>

> [@shanshui](#):
>
> But in my project, need dynamic add a multiUserTask

A multi-Instance with a quantity of 1 is indistinguishable from a single-Instance. If you update your process to allow multi-instance, but set the incoming dataset to only have one value it should work.  
When you need it to also support multiple, send a dataset with multiple.

Remember that BPMN is about creating reuasble, repeatable, consistent processes, so modeling the edge cases is important too.

---

<div class="post-metadata">

**Author:** ![shanshui](https://forum.camunda.io/user_avatar/forum.camunda.io/shanshui/32/32302_2.png) [@shanshui](https://forum.camunda.io/u/shanshui)\
**Post date:** [March 26, 2025, 6:29am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/8 "2025-03-26T06:29:27Z")

</div>

yes. I would be very happy if the requirements could be implemented without changing the processInstance.  
I even considered copying a new processDefinition and adding a node to fulfill my requirements 🥲

---

<div class="post-metadata">

**Author:** ![shanshui](https://forum.camunda.io/user_avatar/forum.camunda.io/shanshui/32/32302_2.png) [@shanshui](https://forum.camunda.io/u/shanshui)\
**Post date:** [March 26, 2025, 6:32am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/9 "2025-03-26T06:32:47Z")

</div>

Not chang the quantity of multiUserTask, but by adding a new node(multiUserTask) to the processInstance

---

<div class="post-metadata">

**Author:** ![shanshui](https://forum.camunda.io/user_avatar/forum.camunda.io/shanshui/32/32302_2.png) [@shanshui](https://forum.camunda.io/u/shanshui)\
**Post date:** [March 26, 2025, 6:33am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/10 "2025-03-26T06:33:58Z")

</div>

As long as I can dynamically add a new multiUserTask, I can achieve my requirements 😭

---

<div class="post-metadata">

**Author:** ![GotnOGuts](https://forum.camunda.io/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@GotnOGuts](https://forum.camunda.io/u/GotnOGuts)\
**Post date:** [March 26, 2025, 3:47pm UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/11 "2025-03-26T15:47:39Z")

</div>

> [@shanshui](#):
>
> dynamically add a new multiUserTask

You are being told repeatedly that you cannot do that.  
We are giving you other ways to accomplish the same goal.

---

<div class="post-metadata">

**Author:** ![shanshui](https://forum.camunda.io/user_avatar/forum.camunda.io/shanshui/32/32302_2.png) [@shanshui](https://forum.camunda.io/u/shanshui)\
**Post date:** [March 27, 2025, 11:36am UTC](https://forum.camunda.io/t/how-to-dynamic-add-a-multiusertask-in-my-processinstance-not-processdefinition/60684/12 "2025-03-27T11:36:58Z")

</div>

Your ways can’t to accomplish the same goal.
