- Mon Apr 27, 2020 7:56 pm
#827951
Screenshot_1.png (10.42 KiB) Viewed 2514 times
Hi,
I have two tasks A and B as illustrated in the attached file, where task B is assigned to a group named: “Accounting validators” with a self-service method.
When the user validates task A, an email notification is sent to all users of the group “Accounting validators”, for that I did the following inside a trigger:
I am using ProcessMaker Enterprise Edition 3.3.17
Best Regards.
I have two tasks A and B as illustrated in the attached file, where task B is assigned to a group named: “Accounting validators” with a self-service method.
When the user validates task A, an email notification is sent to all users of the group “Accounting validators”, for that I did the following inside a trigger:
Code: Select all
This method is working fine, however, i am looking for a method to dynamically get the group name of the next step without hard code it name in the code?$groupName = "WF France GestCtrat Compta Validation 1";
$groupId = PMFGetGroupUID($groupName);
if (empty($groupId)) {
throw new Exception("Group '$groupName' doesn't exist.");
}else{
$aUsers = PMFGetGroupUsers($groupId);
foreach ($aUsers as $aUser) {
$res=PMFSendMessage(@@APPLICATION, '', $aUser['USR_EMAIL'] , '', '',$subject, $templateMail,$aFields);
I am using ProcessMaker Enterprise Edition 3.3.17
Best Regards.