}
// </uima-3351>
private void adjustWindows(IDuccWorkJob job, IDuccProcess process) {
String methodName = "adjustWindows";
ITimeWindow twi = process.getTimeWindowInit();
long i0 = twi.getStartLong();
long i1 = twi.getEndLong();
ITimeWindow twr = process.getTimeWindowRun();
long r0 = twr.getStartLong();
long r1 = twr.getEndLong();
if(i0 != i1) {
if(r0 != r1) {
if(r0 < i1) {
logger.warn(methodName, job.getDuccId(), process.getDuccId(), "run-start: "+r0+" -> "+i1);
r0 = i1;
twr.setStartLong(r0);
if(r1 < r0) {
logger.warn(methodName, job.getDuccId(), process.getDuccId(), "run-end: "+r1+" -> "+r0);
r1 = r0;
twr.setEndLong(r1);
}
}
}
}
}