Commit cf064d23 authored by skumbhar's avatar skumbhar

Changed query for Failed Business Logic


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98190 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8353ffb8
......@@ -49,9 +49,8 @@ public class FailedBusiLogicConf implements Schedule
Connection conn = null;
@Override
public String schedule(String scheduleParamXML) throws Exception
{
System.out.println("In schedule() of FailedBusiLogicConf.java");
public String schedule(String scheduleParamXML)throws Exception{
PreparedStatement pStmt = null;
ResultSet rs = null;
String sql="",refId="",retString="",errString="";
......@@ -61,9 +60,12 @@ public class FailedBusiLogicConf implements Schedule
boolean isError = false;
String xtraParams = "",siteCode=""; //The parameters from BaseApplication.xml
System.out.println("in schedule()-->>>>>>>>>");
try
{
System.out.println("in try block of schedule()>>>>>>>>>");
conn = connDriver.getConnectDB("DriverITM");
System.out.println("********* In Scheduler Begine TRY ***************");
Document dom = null;
int noOfParam=0;
userInfo = new ibase.utility.UserInfoBean( scheduleParamXML );
......@@ -71,12 +73,15 @@ public class FailedBusiLogicConf implements Schedule
xtraParams = "loginCode="+userInfo.getLoginCode()+"~~termId="+userInfo.getRemoteHost()+"~~loginSiteCode="+loginSiteCode+"~~loginEmpCode="+userInfo.getEmpCode();
System.out.println("XTRAPARAMS contain :- ["+xtraParams+"]");
System.out.println("ScheduleParamXML contains :- ["+scheduleParamXML+"]");
sql = "select tran_id from business_logic_check blc " +
"join sorder so on so.sale_order = blc.sale_order and so.cr_check_stat = 'F' and so.confirmed = 'N' " +
"join sorder so on so.sale_order = blc.sale_order and so.cr_check_stat = 'F' " +
"where tran_id not in (select ref_id from wf_prc_status where ref_ser = 'T-BLOG')";
System.out.println("after sql while loop");
pStmt = conn.prepareStatement(sql);
System.out.println("after pstmt while loop");
rs = pStmt.executeQuery();
System.out.println("before while loop");
......@@ -131,8 +136,7 @@ public class FailedBusiLogicConf implements Schedule
}
}
public String confirm(String tranId, String empCodeAprv, String xmlDataAll, String processId, String keyFlag) throws ITMException, Exception
{
public String confirm(String tranId, String empCodeAprv, String xmlDataAll, String processId, String keyFlag) throws ITMException, Exception {
System.out.println("confirm workflow invocation");
System.out.println("Parameters ::: tranId["+tranId+"],empCodeAprv["+empCodeAprv+"],xmlDataAll["+xmlDataAll+"],processId["+processId+"],keyFlag["+keyFlag+"]");
String loginCode = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment