Class ChangeState

java.lang.Object
org.openwms.tms.impl.state.ChangeState
All Implemented Interfaces:
UpdateFunction

@Transactional(propagation=MANDATORY) @Component class ChangeState extends Object implements UpdateFunction
A ChangeState is an UpdateFunction to change the state of an TransportOrder.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • ctx

      private final org.springframework.context.ApplicationContext ctx
    • stateManager

      private final StateManager stateManager
  • Constructor Details

    • ChangeState

      ChangeState(org.springframework.context.ApplicationContext ctx, StateManager stateManager)
  • Method Details

    • update

      @Measured public void update(TransportOrder saved, TransportOrder toUpdate)
      Validate and change the requested values of the saved instance.
      Specified by:
      update in interface UpdateFunction
      Parameters:
      saved - The currently persisted TransportOrder
      toUpdate - The TransportOrder holding the new values to save