responseInfo.append("1) VisionEDIService called.");//Added by Gagan B. to store RESPONSE_INFO in API_CALL_LOG.
StringresponseWithBatchID="";
//Added by Gagan B. to write file each time handleRequest is called irrespective of whether input data is correct or not at Path: /wildfly/vision_edi/data/*/<file_name> [START]
//Added by Gagan B. to write file each time handleRequest is called irrespective of whether input data is correct or not at Path: /wildfly/vision_edi/data/*/<file_name> [END]
Stringresult="";
StringresultFromtransLoad="";//Added by Gagan B. on 17th-FEB-23 declared variable to store result from transLoad method.
//Changes by Jatin M on 17/02/2022 as suggested by Danish sir to change error to Reject - START
//String status = "error";
//Commented by amol s , declare it globaly -Start
//String status = "Reject";
//Commented by amol s , declare it globaly -End
//Changes by Jatin M on 17/02/2022 as suggested by Danish sir to change error to Reject - STOP
// Added by Gagan B. to validate TOKEN ID if provided at start and create userInfo from it. on 04-APR-23 [START]
// Changes by Gagan B. on 13-SEP-24 [Using E12ExtServiceUtility's validateToken, which also uses appId and endpoint in VisionEDIUtility while validating token]
messageFromBatchLoad=dbAccessEJB.getDBColumnValue("BATCHLOAD","ERROR_MSG","BATCH_ID = '"+batchId+"'"+"AND ERROR_MSG IS NOT NULL",userInfo.getTransDB());
//Added by Ravindra C on 19/02/2021 [move failed file to load folder in case of reload] START
if("R".equalsIgnoreCase(loadStat))
{
moveFailedFileToUpload(uploadFilePath,fileName);
}
//Added by Ravindra C on 19/02/2021 [move failed file to load folder in case of reload] END
// Changes by Gagan B. as per suggestions of Danish Sir to remove condition and pass inputData to writeFile method which is passed to transLoad as parameter.
//Changes by Gagan B. to not retrieve value if ERROR_MSG column's value is null.
messageFromBatchLoad=dbAccessEJB.getDBColumnValue("BATCHLOAD","ERROR_MSG","BATCH_ID = '"+batchId+"'"+"AND ERROR_MSG IS NOT NULL",userInfo.getTransDB());
}
catch(RemoteException|ITMExceptione)
{
e.printStackTrace();
}
}
//Added by Gagan B. for setDataAndConfirm endpoint functionality [START]