Class TransportUnitRemovalHandler

java.lang.Object
org.openwms.tms.impl.removal.TransportUnitRemovalHandler

@TxService class TransportUnitRemovalHandler extends Object
A TransportUnitRemovalHandler updates existing TransportOrders in case a TransportUnit is deleted.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • repository

      private final TransportOrderRepository repository
    • ctx

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

      private final List<String> blockStates
    • stateManager

      private final StateManager stateManager
  • Constructor Details

    • TransportUnitRemovalHandler

      TransportUnitRemovalHandler(TransportOrderRepository repository, org.springframework.context.ApplicationContext ctx, @Value("${owms.tms.block-tu-deletion-states}") String cancelStartedTO, StateManager stateManager)
  • Method Details

    • preRemove

      @Transactional @Measured public void preRemove(org.openwms.common.transport.api.commands.TUCommand command) throws RemovalNotAllowedException
      Throws:
      RemovalNotAllowedException
    • checkForStarted

      protected void checkForStarted(org.openwms.common.transport.api.commands.TUCommand command)
    • cancel

      private void cancel(TransportOrder transportOrder)
    • setProblem

      private void setProblem(TransportOrder transportOrder, Message problem)
    • cancelInitializedOrders

      protected void cancelInitializedOrders(org.openwms.common.transport.api.commands.TUCommand command)
    • unlinkFinishedOrders

      protected void unlinkFinishedOrders(org.openwms.common.transport.api.commands.TUCommand command)
    • unlinkCanceledOrders

      protected void unlinkCanceledOrders(org.openwms.common.transport.api.commands.TUCommand command)