Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By medoman
#815387
Bp.jpg
Bp.jpg (47.51 KiB) Viewed 2859 times
good morning friends
i have now a very serious case, as you see in the attached picture , i have a document submitted from the (advisor) to 3 wayes (BRC manager to take action) and (BDU and program manager only for review), so the only action taken here was by the BRC manager,
so i need the case in the others viewers inbox only if the case not approved or declined by the BRC manager, but when the BRC manager takes any action , i want the case move to the viewer's participated folder, and the same in the (TOR part)

i mean that i need the action taken by the BRC manager applied on the other viewers.
User avatar
By amosbatto
#815406
Can you explain more clearly what you want?

If you want people who didn't participate in the case to be able to see the case, then you need to give those other users the PM_ALLCASES permission in their roles and Process Permissions to see cases from this process. You can use PMFSendMessage() in a trigger to send an email to all those users, giving them a link to open the case if you don't want to give them the PM_ALLCASES permission and go to Home > Advanced Search to find the case.
Another option is to use triggers to temporarily assign the users to the case with a trigger, so they can find case by going to Home > Participated. See:
viewtopic.php?f=41&t=730000&p=812380#p812380

Is that what you want?
By medoman
#815416
yes Amos, that was exactly what i want.... i found the topic yesterday and implemented it, but i have 2 users that i want to include them in the process not only one, also i already have their ids in variables (sector_bdu_id and programe_id)
i run the trigger twice to solve this problem, can i do this in one light trigger?
User avatar
By amosbatto
#815508
Two temporarily assign two users to the task, change the trigger code from:
Code: Select all
$c->reassignCase($caseId, $nextIndex, $nextUserId, $participatedUserId);
    
//reassign case back to $nextUserId:
$c->reassignCase($caseId, $nextIndex + 1, $participatedUserId, $nextUserId);
To:
Code: Select all
$c->reassignCase($caseId, $nextIndex, $nextUserId, @@sector_bdu_id);
$c->reassignCase($caseId, $nextIndex + 1,  @@sector_bdu_id, @@programe_id);
    
//reassign case back to $nextUserId:
$c->reassignCase($caseId, $nextIndex + 2, @@programe_id, $nextUserId);
Designer not loading...

Okay after many, many, MANY hours.... I found […]

The Drip casino clone script enables entrepreneurs[…]

Create a cutting-edge crypto sports betting platfo[…]

Betdaq Clone Script is a ready-to-launch solution […]