Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By heemalkumar
#823042
Hi Team
I need some assistance with my routing rule.

I have a checkgroup, with 2 selections (ICBS, Euronet). Depending on this selection, if only ICBS is checked, then form should go to ICBS Team, if Euronet is checked, then form should go to Euronet team, and if both is checked, then form should go to both teams.

How should I do this in my routing rule? Please assist. I have currently done this as parallel, but would like it to work as mentioned above
By michaeltimoteo
#823054
The cleanest and easiest way to do this is by using a value base assignment and a trigger that will determine who will be the assigned user if your check group have a value of ICBC, EURONET or both.

Here is how I do this:
1.The first task will ask you which payment channel you will be used and on the second task it will determine who will be the assignee, refer on the bpmn screenshot.


2. Create a trigger, I used this as my code. Feel free to modify it according to your liking.
Code: Select all
if (in_array("ICBS", @=paymentChannel) && count(@=paymentChannel) == 1) {
  @@SYS_NEXT_USER_TO_BE_ASSIGNED = '5241957615c6fca4547f384075501730';  //icbc group
}
else if(in_array("EURONET", @=paymentChannel) && count(@=paymentChannel) == 1){
   @@SYS_NEXT_USER_TO_BE_ASSIGNED = '1296335605c6fca58dc97e0009345600';  //euronet group
}
else if(count(@=paymentChannel) == 2){
	@@SYS_NEXT_USER_TO_BE_ASSIGNED = '3462149295c6fca70c29ad6028269698'; //merged group
}
3. I attached the trigger on the first task (Initial requirement)
Screen Shot 2019-02-22 at 6.42.04 PM.png
Screen Shot 2019-02-22 at 6.42.04 PM.png (375.83 KiB) Viewed 3476 times
4. Change the assignment rule of the second task (Payment Channel)
Screen Shot 2019-02-22 at 6.44.12 PM.png
Screen Shot 2019-02-22 at 6.44.12 PM.png (388.81 KiB) Viewed 3476 times
Attachments
Screen Shot 2019-02-22 at 6.37.32 PM.png
Screen Shot 2019-02-22 at 6.37.32 PM.png (196.33 KiB) Viewed 3476 times
User avatar
By ziadeh
#823055
Could you please share a screenshot from your process map?

Did the next task is assigned to a group of users? or the process will go through couple of tasks based on the first selection of teams?

if you going to assign the task to a group of users based on selection, you do first make a Groups
Admin -> Users -> Groups
1- ICBS
2- Euronet

Then add ICBS users to the ICBS group and Euronet users to Euronet group.
Then assign the groups to the next task

Then fire this trigger after Dynaform:
Code: Select all
$teams = @=checkGroupTeams;
@=listOfUsers = array();
foreach($teams as $key => $groupName) {  
	$groupId = PMFGetGroupUID($groupName);
	if (empty($groupId)) { 
	  throw new Exception("Group '$groupName' doesn't exist."); 
	}

	$aUsers = PMFGetGroupUsers($groupId);

	foreach ($aUsers as $aUser) {
	    array_push(@=listOfUsers, $aUser["USR_UID"]);
	}
} 

Then go to the next task -> Assignment Rules , select "Self Service Value Based Assignment"
Add this variable : @@listOfUsers
By heemalkumar
#823091
Hi Guys,
Find attached my Dynaform.

In this dynaform, my variable 'checkgroupAccess' has 3 selections. If this variable is == 2, then it should route to ICBS task. If variable == 3, then it should route to Euronet task. If variable == 2 && ==3, then it should go parallel to both ICBS and Euronet.
Screenshot of flow also attached :
Attachments
Add description
(19.5 KiB) Downloaded 235 times
RoutingRulev2.JPG
Add description
RoutingRulev2.JPG (44.1 KiB) Viewed 3443 times

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]