Package org.openwms.tms.impl.state
Class Starter
java.lang.Object
org.openwms.tms.impl.state.Starter
- All Implemented Interfaces:
Startable
A Starter.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationContext
private ExternalStarter
private final org.openwms.common.location.api.LocationApi
private final org.openwms.common.location.api.LocationGroupApi
private static final org.slf4j.Logger
private final TransportOrderRepository
private final StateManager
-
Constructor Summary
ConstructorDescriptionStarter
(TransportOrderRepository repository, org.openwms.common.location.api.LocationApi locationApi, org.openwms.common.location.api.LocationGroupApi locationGroupApi, org.springframework.context.ApplicationContext ctx, StateManager stateManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Start theTransportOrder
with the given id.private void
Call to start theTransportOrder
identified by the information ofto
.void
Start the nextTransportOrder
for theTransportUnit
.void
Trigger a start of the givenTransportOrder
.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
repository
-
locationApi
private final org.openwms.common.location.api.LocationApi locationApi -
locationGroupApi
private final org.openwms.common.location.api.LocationGroupApi locationGroupApi -
ctx
private final org.springframework.context.ApplicationContext ctx -
externalStarter
-
stateManager
-
-
Constructor Details
-
Starter
Starter(TransportOrderRepository repository, org.openwms.common.location.api.LocationApi locationApi, org.openwms.common.location.api.LocationGroupApi locationGroupApi, org.springframework.context.ApplicationContext ctx, StateManager stateManager)
-
-
Method Details
-
start
@Measured @Transactional(propagation=REQUIRED, noRollbackFor=StateChangeException.class) public void start(String pKey) Start theTransportOrder
with the given id. -
startNext
@Measured @Transactional(propagation=REQUIRED, noRollbackFor=StateChangeException.class) public void startNext(String transportUnitBK) Start the nextTransportOrder
for theTransportUnit
. -
triggerStart
@Measured @Transactional(propagation=REQUIRED, noRollbackFor=StateChangeException.class) public void triggerStart(TransportOrder to) Trigger a start of the givenTransportOrder
.- Specified by:
triggerStart
in interfaceStartable
- Parameters:
to
- The TransportOrder instance to start
-
startInternal
Call to start theTransportOrder
identified by the information ofto
.- Parameters:
to
- At last one of the targets must be present as well as the referring TransportUnitID- Throws:
org.ameba.exception.NotFoundException
- If input parameters are not validStateChangeException
- If it is not allowed to change the TransportOrders state
-