Package org.openwms.wms.movements.impl
Class Movement
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.wms.movements.impl.Movement
- All Implemented Interfaces:
Serializable
,org.ameba.integration.TypedEntity<Long>
@Entity
public class Movement
extends org.ameba.integration.jpa.ApplicationEntity
implements Serializable
A Movement is a simple task to move a
TransportUnit
from one source Location
to a target Location
. This is
often used for manual warehouses or manual activities.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate ZonedDateTime
Date when theMovement
ended.private MovementGroup
TheMovementGroup
, theMovement
belongs to.private @NotNull String
Initiator of theMovement
, who ordered or triggered it.private ZonedDateTime
Latest possible finish date of thisMovement
.private Message
A message with the reason for thisMovement
.private @NotNull StartMode
Defines how the resultingTransportOrder
is started.private @NotNull PriorityLevel
A priority level of theMovement
.private List
<ProblemHistory> Reported problems on theMovement
.private String
Refers to the demandedProduct
for that theMovement
has been created.private String
Where theMovement
is picked up.private String
The name of theLocationGroup
where thesourceLocation
belongs to.private ZonedDateTime
Date when theMovement
was started.private ZonedDateTime
Date when theMovement
can be started earliest.private DefaultMovementState
The current state theMovement
resides in.private @Null(groups=Create.class) String
The targetLocation
of theMovement
.private @NotNull String
ALocationGroup
can also be set as target.private @NotNull Barcode
The business key of theTransportUnit
to move.private @NotNull MovementType
Type of theMovement
.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addProblem
(ProblemHistory problem) Add a new problem to theMovement
sproblemHistory
.boolean
Check whether thetargetLocation
is empty.boolean
boolean
Not the group and not the history.getGroup()
getMode()
getSku()
getState()
getType()
int
hashCode()
boolean
hasSKU()
Checks if thisMovement
has aSKU
set.void
initStartDate
(ZonedDateTime startDate) Set astartDate
for thisMovement
if not already set.void
setEndDate
(ZonedDateTime endDate) void
setInitiator
(String initiator) void
setInitiatorOrDefault
(String initiator, String defaultVal) Set the initiator, or the given default value.void
setMessage
(Message message) void
void
void
setSourceLocation
(String sourceLocation) void
setSourceLocationGroupName
(String sourceLocationGroupName) void
setStartDate
(ZonedDateTime startDate) void
setState
(DefaultMovementState state) void
setTargetLocation
(String targetLocation) void
setTargetLocationGroup
(String targetLocationGroup) void
setTransportUnitBk
(Barcode transportUnitBk) toString()
Not the group and not the history.Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKey
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setOl
-
Field Details
-
transportUnitBk
The business key of theTransportUnit
to move. -
type
Type of theMovement
. -
initiator
Initiator of theMovement
, who ordered or triggered it. -
group
TheMovementGroup
, theMovement
belongs to. -
sku
Refers to the demandedProduct
for that theMovement
has been created. -
priority
A priority level of theMovement
. The lower the value the lower the priority. The priority level affects the execution of theMovement
. An order with high priority will be processed faster than those with lower priority. -
mode
Defines how the resultingTransportOrder
is started. -
state
The current state theMovement
resides in. -
message
A message with the reason for thisMovement
. -
problems
Reported problems on theMovement
. -
sourceLocation
Where theMovement
is picked up. -
sourceLocationGroupName
The name of theLocationGroup
where thesourceLocation
belongs to. -
targetLocation
The targetLocation
of theMovement
. This property is set before theMovement
is started. -
targetLocationGroup
ALocationGroup
can also be set as target. At least one target must be set when theMovement
is being started. -
startEarliestDate
Date when theMovement
can be started earliest. -
startDate
Date when theMovement
was started. -
latestDueDate
Latest possible finish date of thisMovement
. -
endDate
Date when theMovement
ended.
-
-
Constructor Details
-
Movement
protected Movement()Dear JPA...
-
-
Method Details
-
addProblem
Add a new problem to theMovement
sproblemHistory
.- Parameters:
problem
- The problem to store- Returns:
- true if added successfully
-
emptyTargetLocation
public boolean emptyTargetLocation()Check whether thetargetLocation
is empty.- Returns:
- true if so
-
setInitiatorOrDefault
Set the initiator, or the given default value.- Parameters:
initiator
- The initiatordefaultVal
- The default value
-
hasSKU
public boolean hasSKU()Checks if thisMovement
has aSKU
set.- Returns:
- true if so
-
initStartDate
Set astartDate
for thisMovement
if not already set.- Parameters:
startDate
- The start date to set
-
getTransportUnitBk
-
setTransportUnitBk
-
getType
-
getInitiator
-
setInitiator
-
getGroup
-
getSku
-
setSku
-
getPriority
-
getMode
-
setMode
-
getMessage
-
setMessage
-
getState
-
setState
-
getProblems
-
getSourceLocation
-
setSourceLocation
-
getSourceLocationGroupName
-
setSourceLocationGroupName
-
getTargetLocation
-
setTargetLocation
-
getTargetLocationGroup
-
emptyTargetLocationGroup
public boolean emptyTargetLocationGroup() -
setTargetLocationGroup
-
getStartEarliestDate
-
getStartDate
-
setStartDate
-
getLatestDueDate
-
getEndDate
-
setEndDate
-
toString
Not the group and not the history. -
equals
Not the group and not the history.- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-