DuccId jobDuccId = job.getDuccId();
IDuccProcess process = job.getProcessMap().findProcess(nodeIP, PID);
if(process != null) {
DuccId processDuccId = process.getDuccId();
jobDriver.accountingWorkItemIsDispatch(processDuccId);
ThreadLocation threadLocation = jobDriver.getCasDispatchMap().get(casId);
duccOut.debug(location, jobDuccId, processDuccId, "seqNo:"+threadLocation.getSeqNo()+" "+"casId:"+casId+" "+"node:"+nodeIP+" "+"PID:"+PID);
WorkItem workItem = casWorkItemMap.get(casId);
workItem.setProcessId(processDuccId);
locationPendingMapRemove(threadLocation.getSeqNo(),casId);
}
else {
NP casLocation = new NP(nodeIP, PID);
ThreadLocation threadLocation = jobDriver.getCasDispatchMap().get(casId);
locationPendingMapPut(threadLocation.getSeqNo(), casId, casLocation);
DuccId processDuccId = null;
duccOut.debug(location, jobDuccId, processDuccId, "seqNo:"+threadLocation.getSeqNo()+" "+"casId:"+casId+" "+"node:"+nodeIP+" "+"PID:"+PID);
}
}
catch(Exception e) {
duccOut.error(location, jobid, "location error?", e);
}