-
1. Re: Tasks -->Sub-Tasks
send2shriram Feb 18, 2006 4:03 AM (in response to send2shriram)Hi,
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
Shriram -
2. Re: Tasks -->Sub-Tasks
fmuhlenberg Feb 22, 2006 4:53 PM (in response to send2shriram)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.
-fm