cancel
Showing results for 
Search instead for 
Did you mean: 

Users & Groups for Call Activity

houstoniasian
Champ in-the-making
Champ in-the-making
I create a few simple tasks.  Let's say I have Task1, Task2 & Task3.

In ProcessA, I want to call these 3 tasks.
In ProcessB, I also call these 3 tasks.

Basically, I want these 3 tasks are re-used for multiple process.  So I use CallActivity.

The problem is that I have I can't assign users/groups in ProcessA or ProcessB to CallActivity.  Even though the 3 tasks are called in both ProcessA & ProcessB, these 3 tasks are supposed to be completed by different user/group in each process.  Therefore, I can't assign user/group to the tasks.  I was hoping I can assign user/group to the callActivity but this option is not available.

How do I solve this problem?

Thank you,

Tan
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Tan,

Use expressions with variables for groups/users in the Task1, 2, 3. You can call activiti with these variables set.

e.g. in the subprocess

<userTask id="Task1" activiti:candidateGroup="${candidateGroupTask1}"/>

Regards
Martin