Commit 8f5f170b authored by asant's avatar asant

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194758 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e1ab5136
...@@ -29,6 +29,7 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca ...@@ -29,6 +29,7 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
DistCommon discommon = new DistCommon(); DistCommon discommon = new DistCommon();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
private boolean isWorkflow = false;
public String confirm(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException public String confirm(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException
{ {
...@@ -49,7 +50,8 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca ...@@ -49,7 +50,8 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
// Added by AMOL on 18-12-18 [START] // Added by AMOL on 18-12-18 [START]
public String confirm(String tranID,String xtraParams, String forcedFlag,String userInfoStr) throws RemoteException,ITMException public String confirm(String tranID,String xtraParams, String forcedFlag,String userInfoStr) throws RemoteException,ITMException
{ {
System.out.println("#### Calling confirm ..."); System.out.println("#### Calling through workflow confirm ...");
isWorkflow = true;
String retString = ""; String retString = "";
Connection conn = null; Connection conn = null;
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
...@@ -71,6 +73,7 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca ...@@ -71,6 +73,7 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
connDriver = null; connDriver = null;
retString = this.confirm(tranID, xtraParams, forcedFlag, conn); retString = this.confirm(tranID, xtraParams, forcedFlag, conn);
isWorkflow = false;
System.out.println("retString:::::"+retString); System.out.println("retString:::::"+retString);
} }
catch(Exception e) catch(Exception e)
...@@ -694,7 +697,14 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca ...@@ -694,7 +697,14 @@ public class IndentReqConf extends ActionHandlerEJB implements IndentReqConfLoca
throw new ITMException(e); throw new ITMException(e);
} }
} }
return errString; if(isWorkflow)//Added by AMOL
{
return "1";
}
else
{
return errString;
}
} }
......
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