Class ContextUpdateService


  • @Service
    public class ContextUpdateService
    extends Object
    Service that deals with optimistic lock exceptions when updating context. They happen when API received user input but we received outdated variable from database. Note that due to the how JsonCustomSerializer is implemented this class will always read correct context. If you create and persist Xs2aListAccountsContext it will be always read here as Xs2aListAccountsContext.
    • Constructor Detail

      • ContextUpdateService

        public ContextUpdateService()
    • Method Detail

      • updateContext

        @Retryable(org.flowable.common.engine.api.FlowableOptimisticLockingException.class)
        @Transactional(propagation=REQUIRES_NEW)
        public <T> T updateContext​(String executionId,
                                   Function<T,​T> updateCtx)