I have a loop operator which iterates an array of tickets. I'm performing update status operation.
If any one of the ticket update status is failed, how to continue the operation on the remaining tickets in the array.
defined the logic in Exception handler, however the loop keep iterating the first element and it is not continuing the operating on the remaining tickets in the array.
loop operator Settings:
Pre-execution code:
Process.i = 0;
Post- Execution code:
Process.i ++;
Repeat Count :
Process.noautoClose__op__
Update_Request Operator:
Request Number - expression
Process.autoCloseList[Process.i].ref_num
Post Execution-
if (Process[OpName].Result != 1) {
var j = Process.falied_op__.length++;
Process.falied_op__[j].ref_num = Process.autoCloseList[Process[OpName].CurrentLoopIteration].ref_num;
Process.falied_op__[j].reason = Process[OpName].Reason;
} else {
var k = Process.sucess__op__.length++;
Process.sucess__op__[k].ref_num = Process.autoCloseList[Process[OpName].CurrentLoopIteration].ref_num;
Process.sucess__op__[k].reason = Process[OpName].Reason;
}
Update Request operation Inside Loop
Exception Handler - Definition
In Java script 2 source code.
Process.exceptionType = "Unidentified Response";
Process.source = Process.undefinedResponse.source;
Process.errorMessage = Process[Process.source].Reason;
In java script 3 source code.
Process.resetflag = false;
if (Process.errorMessage.toLowerCase().indexOf("fault returned") != -1) {
if (Process.source == "Update_Request_1"){
if(Process.autoCloseList.length > Process.i)
Process.resetflag = true;
}
}
Reset Operator settings
any suggestion how to handle and continue the operation on all the array of ticket numbers?