Package org.openwms.wms.receiving.impl
Class ReceivingOrderPositionEventListener
java.lang.Object
org.openwms.wms.receiving.impl.ReceivingOrderPositionEventListener
A ReceivingOrderPositionEventListener listens on events according to
ReceivingOrderPosition
s.- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final org.springframework.context.ApplicationEventPublisher
private final ReceivingOrderRepository
-
Constructor Summary
ConstructorDescriptionReceivingOrderPositionEventListener
(org.springframework.context.ApplicationEventPublisher publisher, ReceivingOrderRepository repository) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Change state of aReceivingOrder
after a position has changed its state.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
publisher
private final org.springframework.context.ApplicationEventPublisher publisher -
repository
-
-
Constructor Details
-
ReceivingOrderPositionEventListener
ReceivingOrderPositionEventListener(org.springframework.context.ApplicationEventPublisher publisher, ReceivingOrderRepository repository)
-
-
Method Details
-
onStateChange
@Measured @TransactionalEventListener @Transactional(propagation=REQUIRES_NEW, noRollbackFor=java.lang.IllegalArgumentException.class) public void onStateChange(ReceivingOrderPositionStateChangeEvent event) Change state of aReceivingOrder
after a position has changed its state.- Parameters:
event
- Expected to store the position as source
-