Class PutawayAdapter

java.lang.Object
org.openwms.wms.movements.impl.PutawayAdapter

@TxService @RefreshScope class PutawayAdapter extends Object
A PutawayAdapter is a Spring managed transactional event listener that acts as an adapter to the PutawayApi that is called after a Movement has been created successfully.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • eventPublisher

      private final org.springframework.context.ApplicationEventPublisher eventPublisher
    • properties

      private final MovementProperties properties
    • repository

      private final MovementRepository repository
    • putawayApi

      private final PutawayApi putawayApi
  • Constructor Details

  • Method Details

    • onEvent

      @ConditionalOnExpression("${owms.movement.putaway-resolution-enabled}") @TransactionalEventListener(phase=AFTER_COMMIT) @Transactional(propagation=REQUIRES_NEW, noRollbackFor=java.lang.Exception.class) public void onEvent(MovementEvent event)