cancel
Showing results for 
Search instead for 
Did you mean: 

Can you add an extra assignee to a parallel subflow that is in progress

activuser
Champ in-the-making
Champ in-the-making
Hello,

I have a question regarding sub flows. Unfortunately I cannot divulge any information, diagram or provide a test case due to client confidentiality. However I can describe the problem with an example.

I have a parent workflow that calls a sub flow. The sub flow is set for parallel execution. The sub workflow is initiated using a list of usernames and each parallel execution is passed a variable assignee (i.e. a username). There is a user task in the sub flow that waits for user response.

The problem I have is that I need to add another assignee to the sub flow while it has not completed, i.e. I want to invoke the sub flow again with an assignee that is not in the list Activiti had when it called the sub flow originally.

Please can someone tell me if this is possible? I can create a new Task with TaskService and persist it with save, but I don't see any way of linking it in to the existing sub flow.

Thank you.
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Without doing some low level database inserts and updates this is currently not possible. For Activiti 6 this kind of use case is what we want to support with more dynamic process capabilities.

Best regards,

activuser
Champ in-the-making
Champ in-the-making
Thank you Tijs for prompt reply.

Could you give an indication of when Activiti v6 is likely to be released? Also given your reply would the above action be feasible with Activiti in its 6.0 release?

Finally what would be the best way to accomplish the task I described using Activiti v5 ?

Thanks.