cancel
Showing results for 
Search instead for 
Did you mean: 

Update a live sub-process

mnj111
Champ in-the-making
Champ in-the-making
Hello,

I am learning Activiti. I have a multi instance sub-process that has a bunch of user tasks. Let's say the sub-process collection is "A" with size 2 i.e when the process starts, two initial user tasks are created for the right assignees. Now, at any time, the collection can change. Let's say now the size of "A" is 3. Is it possible to update this sub-process to create another initial third user task without affecting the other ones that are already out there ? Is there a way to handle this type of behavior ?

Thanks in advance for any help.
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

currently the requirement is not supported. I would try to implement the requirement in a different way.

Regards
Martin

mnj111
Champ in-the-making
Champ in-the-making
Thank you Martin, if I port out the sub-process into it's own workflow and each time when the collection changes, I create a process instance using the new workflow, does this create performance issue ? Would it be possible to then sync up with the first process afterwards ?
Process instance A waits on process instance B before proceeding to something else (wait-signal may be) ? How to know if there are no other external processes running ? Process instance A can continue if B is absent ? I am not sure how to make a workaround for this.

Hi,

Performance issue
It's hard to predict and depends on plenty of inputs.

What I would recommend is:
- change business requirement (usually it could be achieved in a different way)
- in other case you have to manage tasks outside of the process.

Regards
Martin

luisfilipe
Champ in-the-making
Champ in-the-making
Hi,

Have you tried using pools and lanes for the workflows sequences for each subprocess?

Regards

Luis