if (objCurrentOrder != null) {
lstrNodeName = objCurrentOrder.state();
logger.info (String.format("%1$s: Current NodeName is '%2$s'.", conMethodName, lstrNodeName));
}
else {
Job objCurrentJob = spooler_task.job();
lstrNodeName = objCurrentJob.name();
logger.info (String.format("%1$s: Current Job is '%2$s'.", conMethodName, lstrNodeName));
}
return lstrNodeName;
} // public String getNodeName