int i_loop_count=1;
log.info("i_loop_count in log: " + i_loop_count);
log.info("Total Count : ${cEMPID_matchNr}");
String tempstr = vars.get("cEMPID_matchNr");
log.info("tempstr in log: " + tempstr);
int total_count = Integer.parseInt(tempstr);
log.info("total_count in log: " + total_count);
tempstr="";
log.info("tempstr in line 14: " + tempstr);
String finalstr="";
log.info("finalstr in line 17: " + finalstr);
while (i_loop_count <= total_count)
{
log.info("In line 21:");
tempstr = vars.get("cEMPID_" + i_loop_count);
log.info("In line 24:");
log.info("count - " + i_loop_count + " loop str - " + tempstr);
log.info("In line 27:");
finalstr=finalstr+tempstr;
log.info("substr - " + finalstr);
log.info("In line 31:");
if(i_loop_count < total_count)
{
log.info("In line 35:");
finalstr= finalstr.concat(",");
}
i_loop_count++;
}
log.info("In line 39:");
log.info("final string - " + finalstr);
vars.put("EmpList",finalstr);
i_loop_count = 0;
int i_iterate = 0;
if (total_count <= 100)
{
i_iterate = 1;
}
else
{
int i_rem = total_count % 100;
int i_quo = total_count / 100;
if ( i_rem == 0)
{
i_iterate = i_quo;
}
else
{
i_iterate = i_quo++;
}
}
log.info("60 : Iterative Counter - " + i_iterate);
String str1 = Integer.toString(i_iterate);
vars.put("Iterate_Count",str1);