cancel
Showing results for 
Search instead for 
Did you mean: 

Complete parent task before complete the child tasks

sai576
Champ on-the-rise
Champ on-the-rise
Hi,
    I faced one scenario in that actually there is categories like
    
1
2
2.1
     2.1.1
2.2
    2.2.1
    2.2.1.1 etc.

like that category levels is there ok. Now user can choose any category ,user can able to directly access sub category levels and complete task also.But i want suppose user select 2.2.1.1 category and after filling data he submit (here task is completed generally after submit the form)
but here before completing this task i want to complete parent tasks also (order is 2==>2.2==>2.2.1==>2.2.1.1 in this way i want to do).
Each category is different workflow.So how to i complete parent task before complete the child task.How to i call the parent tasks from child ones.So how to do this one have any idea.

Thanks.
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
I don't really get what you're trying to do… You say all categories are different processes, which you start yourself in a certain point in time. What if you would use a callActivity in category 2.1, calling the 2.1.1 process. From this call-activity, you have an outgoing flow to another call-activity, which calls process 2.1.2.

If you have more levels, the process 2.1.1, for example, can again have multiple call-activities calling 2.1.1.1 and 2.1.1.2 in the right order you want it…

Thanks frederik  for ur response,

I understand frederik what u r saying actually i implement before like that only.But u told "use a callActivity in category 2.1, calling the 2.1.1 process" but suppose user select the 2.1 category i complete the task 2.1 and i should not go to next 2.1.1.

frederikherema1
Star Contributor
Star Contributor
and i should not go to next 2.1.1.

You can either add a gateway in front of the callActivity that "skips" the 2.1.1 in case some "variable" is present on the process. If the user is allowed to choose what steps to skip for ALL possible steps, I'm not sure a BPM-engine is the right thing to use for such dynamic use cases.