}
}
SchedulerObjectFactory objJSFactory = new SchedulerObjectFactory();
objJSFactory.initMarshaller(ShowHistory.class);
JSCmdShowHistory objShowHistory = objJSFactory.createShowHistory();
objShowHistory.setJob(strJobName);
objShowHistory.setPrev(BigInteger.valueOf(1));
Answer objAnswer = null;
if(flgRunAsSchedulerAPIJob) {
logger.debug("... runs as Job Scheduler API job");
String strShowHistoryXML = objShowHistory.toXMLString();
String answerXML = objJSCommands.executeXML(strShowHistoryXML);
objAnswer = objShowHistory.getAnswer(answerXML);
}
else {
logger.debug("... runs as command line job");
objJSFactory.Options().ServerName.Value(Options().SchedulerHostName.Value());
objJSFactory.Options().PortNumber.value(Options().SchedulerPort.value());
objShowHistory.run();
objAnswer = objShowHistory.getAnswer();
}
if(objAnswer != null) {
ERROR objError = objAnswer.getERROR();
if(objError != null) {