Package org.openwms.tms.impl.redirection
Class RedirectTO
java.lang.Object
org.openwms.tms.impl.redirection.RedirectTO
- All Implemented Interfaces:
UpdateFunction
A RedirectTO is responsible to handle target changes of a
TransportOrder
. Only the targetLocationGroup
of the
TransportOrder toUpdate
is recognized.- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AddProblem
private static final org.slf4j.Logger
private final List
<DecisionVoter<RedirectVote>> 0..* voters, can be overridden and extended with XML configuration. -
Constructor Summary
ConstructorDescriptionRedirectTO
(List<DecisionVoter<RedirectVote>> redirectVoters, AddProblem addProblem) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
differentTarget
(TransportOrder saved, TransportOrder toUpdate) void
update
(TransportOrder saved, TransportOrder toUpdate) Validate and change the requested values of thesaved
instance.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
redirectVoters
0..* voters, can be overridden and extended with XML configuration. So far we define only one (default) voter directly. -
addProblem
-
-
Constructor Details
-
RedirectTO
RedirectTO(@Autowired(required=false) List<DecisionVoter<RedirectVote>> redirectVoters, AddProblem addProblem)
-
-
Method Details
-
update
Validate and change the requested values of thesaved
instance.- Specified by:
update
in interfaceUpdateFunction
- Parameters:
saved
- The currently persisted TransportOrdertoUpdate
- The TransportOrder holding the new values to save
-
differentTarget
-