Skip to content
Snippets Groups Projects
Commit f9b0e253 authored by srosse's avatar srosse
Browse files

OO-4045: close manual mode started too early with follow-up time

parent 6de31c9f
No related branches found
No related tags found
No related merge requests found
...@@ -249,6 +249,13 @@ public class AssessmentModeCoordinationServiceImpl implements AssessmentModeCoor ...@@ -249,6 +249,13 @@ public class AssessmentModeCoordinationServiceImpl implements AssessmentModeCoor
mode = ensureStatusOfMode(mode, Status.none); mode = ensureStatusOfMode(mode, Status.none);
sendEvent(AssessmentModeNotificationEvent.BEFORE, mode, sendEvent(AssessmentModeNotificationEvent.BEFORE, mode,
assessmentModeManager.getAssessedIdentityKeys(mode)); assessmentModeManager.getAssessedIdentityKeys(mode));
} else if(mode.getStatus() == Status.followup && mode.isManualBeginEnd() && !forceStatus) {
// close manual assessment mode in the follow-up time but started before the begin date
if(mode.getEndWithFollowupTime().compareTo(now) < 0) {
mode = ensureStatusOfMode(mode, Status.end);
sendEvent(AssessmentModeNotificationEvent.END, mode,
assessmentModeManager.getAssessedIdentityKeys(mode));
}
} }
} else if(mode.getBeginWithLeadTime().compareTo(now) <= 0 && mode.getBegin().compareTo(now) > 0 } else if(mode.getBeginWithLeadTime().compareTo(now) <= 0 && mode.getBegin().compareTo(now) > 0
&& mode.getBeginWithLeadTime().compareTo(mode.getBegin()) != 0) { && mode.getBeginWithLeadTime().compareTo(mode.getBegin()) != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment