소스 검색

Fix bug of missing trailing VoiceCall status updates to portal.

Reason is due to premature terminating postback threads because
the serviceActivityCount is decremented erreously when updating
intermediate job statuses with portal.
Fix is in classifying job status as final or non-final.
As it is, all JobStatus in CommEngine are final; however,
derived classes may have non-final JobStatus.
tags/1.0.26
ymlam 2 년 전
부모
커밋
fba1269d2d
2개의 변경된 파일16개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      src/main/java/altk/comm/engine/Broadcast.java
  2. +15
    -0
      src/main/java/altk/comm/engine/Job.java

+ 1
- 1
src/main/java/altk/comm/engine/Broadcast.java 파일 보기

@@ -1266,7 +1266,7 @@ public abstract class Broadcast
report.initBase(job, broadcastId, launchRecordId, activityRecordIdParamName, jobReportRootNodeName);
report.init(job);
postback.queueReport(report.toString());
updateServiceActivityCount(-1);
if (job.statusIsFinal()) updateServiceActivityCount(-1);
}
}


+ 15
- 0
src/main/java/altk/comm/engine/Job.java 파일 보기

@@ -1,5 +1,7 @@
package altk.comm.engine;

import altk.comm.engine.Job.CommJobStatus;

/**
* Derived classes may add more class attributes, e.g. list of phone numbers, call status.
* @author Yuk-Ming
@@ -81,5 +83,18 @@ public class Job
{
return false;
}
/**
* Derived class must augment this method to handle its own JobStatus
*/
protected boolean statusIsFinal() {
if (jobStatus instanceof CommJobStatus)
{
return true;
}
throw new IllegalArgumentException("Job status is not a CommJobStatus");
}



}

불러오는 중...
취소
저장