EndStageNotificationAction bugfix
This commit is contained in:
parent
ed7a15410d
commit
80c9870282
1 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ public class EndStageNotificationAction extends AbstractSessionActionForOkErrorH
|
||||||
@Override
|
@Override
|
||||||
protected void actualExecute(StateContext<TaskType, SsnEvent> ctx) {
|
protected void actualExecute(StateContext<TaskType, SsnEvent> ctx) {
|
||||||
Long sessionId = ctx.getExtendedState().get(DataEnum.sessionId, Long.class);
|
Long sessionId = ctx.getExtendedState().get(DataEnum.sessionId, Long.class);
|
||||||
String section = ctx.getExtendedState().get(DataEnum.section, String.class);
|
Section section = ctx.getExtendedState().get(DataEnum.section, Section.class);
|
||||||
// 1. Изменить статус
|
// 1. Изменить статус
|
||||||
Session theSession = sessionImdg.getSingleObjectByID(sessionId);
|
Session theSession = sessionImdg.getSingleObjectByID(sessionId);
|
||||||
if (theSession == null) {
|
if (theSession == null) {
|
||||||
|
|
@ -79,9 +79,9 @@ public class EndStageNotificationAction extends AbstractSessionActionForOkErrorH
|
||||||
log.trace("For registry group {} send notification",
|
log.trace("For registry group {} send notification",
|
||||||
groupId);
|
groupId);
|
||||||
Optional<EnumMessage> sResult;
|
Optional<EnumMessage> sResult;
|
||||||
if (Section.FOND.equalsByKey(section)) {
|
if (Section.FOND.equals(section)) {
|
||||||
sResult = notificationDF14(groupId);
|
sResult = notificationDF14(groupId);
|
||||||
} else if (Section.MKR.equalsByKey(section)) {
|
} else if (Section.MKR.equals(section)) {
|
||||||
sResult = notificationDF05(groupId);
|
sResult = notificationDF05(groupId);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Unsupported section " + section);
|
throw new IllegalArgumentException("Unsupported section " + section);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue