Multiple subprocess - Performers
In my process, I've a multiple subprocess which create a number of instances equal to my collection's rows has.
I use a expression similar like this one bellow, in the performers step to assign a user from WFUSER to the activity.
Although the subprocess creates the right number of instances, It assigns all the subprocesses all to all collaborators. The goal is that the subprocess assign ONE case to ONE collaborator.
How can I solve that?
// Create an array
var Users = new ArrayList();
// Save in a variable the requester
var Requester = <Onboarding.Requester.Id>;
// Get all users whos boss is the requester
var SearchUsers = CEntityManager.GetEntity("WFUser").GetEntityList("","","idBossUser = "+ Requester,"");
// Count how many users comply
var HowManyUsers = SearchUsers.Length;
if(HowManyUsers > 0)
// Add each user to the array
for (var i=0; i < HowManyUsers; i++)
var idUser = SearchUsers[i].SurrogateKeyValue;