cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Multiple Tasks management at current user in Share

dasu_007
Champ in-the-making
Champ in-the-making
Hi everybody,
        I have a requirement in my application that is in a workflow,I have multiple tasks at current user, in that one task(Main task/Combination of other tasks data) contains other tasks data.When I do the task done of other task,the data in main task related to other task should disappear and vice versa.

I will explain with an example.
                 I have tasks named with XYZ and a,b,c and d. Here "XYZ" task is a main task.i.e "XYZ" task contains all the data of a,b,c,d tasks and a,b,c,d are other tasks(like sub tasks). Now my requirement is when I Task Done "a"(other task) task, in XYZ task,only "a" task related data should disappear then XYZ task should persist only b,c,d tasks data.In the same way when I Task Done "a" task which is there  in "XYZ" task,then also "XYZ" task should persist only b,c,d tasks data and at the same time "a" task should be disappeared from task dashlet. Like this,when I Task Done "b"(other task) task also,in XYZ task,"a","b" tasks related data should disappear and "XYZ" task should persist only c,d tasks data and vice-versa.

If u have any doubt regarding requirement, kindly let me know.
This requirement is very crucial in my application.Please suggest me with the solution ASAP. I will be waiting for your response.

Thanks & Regards,
S.Dasu.
1 REPLY 1

angello0571
Champ on-the-rise
Champ on-the-rise
Well,

My suggestion is:

If you have a "main task" that should keeps the data from sub-tasks while they are not marked as completed, then you have to use events.

There are 3 types of events on user task: Create, Complete and Assignment.

If you cach the "complete event" of your sub-task (really is an ordinary task, if you wanna take it as sub-task is just logically for bussiness porpuses) then you can access to the main task and delete the variables you need. The interface that you have to use and access in java to your tasks vars is TaskListener and implements the notify method. Inside that method you have complete control over the context of your workflow.

I hope this can help you.

Regards!