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
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationContextprivate final ExternalStarterprivate final org.openwms.common.location.api.LocationApiprivate final org.openwms.common.location.api.LocationGroupApiprivate static final org.slf4j.Loggerprivate final TransportOrderRepository<TransportOrder, Long> private final StateManager -
Constructor Summary
ConstructorsConstructorDescriptionStarter(TransportOrderRepository<TransportOrder, Long> repository, org.openwms.common.location.api.LocationApi locationApi, org.openwms.common.location.api.LocationGroupApi locationGroupApi, org.springframework.context.ApplicationContext ctx, ExternalStarter externalStarter, StateManager stateManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidStart theTransportOrderwith the given id.private voidCall to start theTransportOrderidentified by the information ofto.voidStart the nextTransportOrderfor theTransportUnit.voidTrigger a start of the givenTransportOrder.private void
-
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<TransportOrder, Long> repository, org.openwms.common.location.api.LocationApi locationApi, org.openwms.common.location.api.LocationGroupApi locationGroupApi, org.springframework.context.ApplicationContext ctx, @Lazy @Autowired(required=false) ExternalStarter externalStarter, StateManager stateManager)
-
-
Method Details
-
start
@Measured @Transactional(propagation=REQUIRED, noRollbackFor=StateChangeException.class) public void start(String pKey) Start theTransportOrderwith the given id. -
startNext
@Measured @Transactional(propagation=REQUIRED, noRollbackFor=StateChangeException.class) public void startNext(String transportUnitBK) Start the nextTransportOrderfor theTransportUnit. -
triggerStart
@Measured @Transactional(propagation=REQUIRED, noRollbackFor=StateChangeException.class) public void triggerStart(TransportOrder to) Trigger a start of the givenTransportOrder.- Specified by:
triggerStartin interfaceStartable- Parameters:
to- The TransportOrder instance to start
-
triggerStartInternal
-
startInternal
Call to start theTransportOrderidentified 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
-