session updated field
This commit is contained in:
parent
5b24b289ef
commit
097f0c649b
3 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package ru.spcex.clearing.session.state.action;
|
||||
|
||||
import java.time.Instant;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
@ -38,6 +39,7 @@ public class UpdateSessionStatusAction extends AbstractSessionActionForOkErrorHa
|
|||
if (status == null)
|
||||
throw new IllegalStateException("status must be set for %s action".formatted(getClass()));
|
||||
session.setSessionStatus(status.getKey());
|
||||
session.setUpdated(Instant.now());
|
||||
log.info("updating session status to {}", status);
|
||||
ssnImdg.update(session);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package ru.spcex.clearing.session.state.action;
|
||||
|
||||
import java.time.Instant;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.statemachine.StateContext;
|
||||
|
|
@ -28,6 +29,7 @@ public class UpdateWorkflowStatusAction extends AbstractSessionActionForOkErrorH
|
|||
if (status == null)
|
||||
throw new IllegalStateException("status must be set for %s action".formatted(getClass()));
|
||||
session.setWorkflowStatus(status.getKey());
|
||||
session.setUpdated(Instant.now());
|
||||
log.info("updating session status to {}", status);
|
||||
ssnImdg.update(session);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ public class SessionStatusChangingInterceptor extends StateMachineInterceptorAda
|
|||
|
||||
String sessionStatus = target.getId().getKey();
|
||||
session.setSessionStatus(sessionStatus);
|
||||
session.setUpdated(Instant.now());
|
||||
ssnImdg.update(session);
|
||||
return ctx;
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue