variable approver

231 views
Skip to first unread message

menos...@googlemail.com

unread,
Oct 6, 2015, 7:53:10 AM10/6/15
to Fujitsu RunMyProcess Developer Community
im trying to create a RMP javascript that allows the user to specifically choose a approver(custom list in organisation) then it should be going through each approver and then send a email to both decisions either approved or rejected. How can i write this in script? this is what i already have:

current_step = Number(current_step) + 1;
work = Number(work);
if (work < current_step) {
var jsonListApprover = JSON.parse(approverArray);
var approverName = jsonListApprover.approverName[current_step];
var approverEmail = jsonListApprover.approver[current_step];


setVariable('V_ApproverName', approverName);
setVariable('V_ApproverEmail', approverEmail);
setVariable('V_CurrentStep', current_step);
}

thanks

Pankaj Kumar

unread,
Oct 9, 2015, 4:35:17 AM10/9/15
to Fujitsu RunMyProcess Developer Community
Hi,

Are you using this script in Process Java Script?

To achieve this functionality, you can use "Sequential Loop" in process and pass the array containing approver list.

For more details on Process Loop, please follow the below link:-
Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/70936a53-539f-4f71-a05a-3a480a94de68%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

menos...@googlemail.com

unread,
Oct 9, 2015, 10:00:08 AM10/9/15
to Fujitsu RunMyProcess Developer Community, menos...@googlemail.com
Thanks it works!
Reply all
Reply to author
Forward
0 new messages