Can anybody guide me how to create a new child task under a parent task,
without ending the parent task ? We have a requirement of this kind of scenario.
For example, an Agency Supervisor(parent task) will create tasks for juniors(child tasks) under him and the Supervisior can close his task only after the juniors has ended their tasks.
Thanks in Advance
I had a similar problem where I have an approval process that requires approvals to be done in order. If an approval is rejected, the process ends.
My solution was to generate all the tasks up front but assign only one. Upon receiving an approval (ie task was completed), I assigned the next actor to the next available task and then ended the previous task. This was custom code in a servlet.
For your case, I'd suggest creating and assigning all the tasks up front, store the Master task ID in a process instance context variable. Then, when all child tasks are completed, you could locate and end the Master task, then the workflow will continue.