Class RedirectTO

java.lang.Object
org.openwms.tms.impl.redirection.RedirectTO
All Implemented Interfaces:
UpdateFunction

@Component class RedirectTO extends Object implements UpdateFunction
A RedirectTO is responsible to handle target changes of a TransportOrder. Only the targetLocationGroup of the TransportOrder toUpdate is recognized.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • redirectVoters

      private final List<DecisionVoter<RedirectVote>> redirectVoters
      0..* voters, can be overridden and extended with XML configuration. So far we define only one (default) voter directly.
    • addProblem

      private final AddProblem addProblem
  • Constructor Details

  • Method Details

    • update

      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
    • differentTarget

      private boolean differentTarget(TransportOrder saved, TransportOrder toUpdate)