var userList = {
"ListOfUsers" :[
{"Name":"sara", "approved": false, "rejectReason":"" },{"Name":"dinesh", "approved": false, "rejectReason":"" }
]
}
execution.setVariable('UserList', JSON.stringify(userList));
Flow_0a8389u
Flow_039sglj
confirmed
Flow_10inksh
var userList = execution.getVariable('UserList');
var singleUser = execution.getVariable('singleUser');
var rejectReason = execution.getVariable('rejectReason');
var loopCounter = execution.getVariable('loopCounter');
var confirmed = execution.getVariable('confirmed');
if (loopCounter) {
var parsedUserList = JSON.parse(userList);
parsedUserList["ListOfUsers"][loopCounter]["rejectReason"] = rejectReason;
parsedUserList["ListOfUsers"][loopCounter]["approved"] = confirmed;
execution.setVariable('UserList', JSON.stringify(parsedUserList));
execution.setVariable('UserList', JSON.stringify(parsedUserList));
}
Flow_0a8389u
Flow_039sglj
${confirmed}
rejected
Flow_06sgh02
${approved ? "APPROVED": "REJECTED"}
confirmed
Flow_06sgh02
Flow_10inksh
rejected
Multiple Reviewers