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
FieldsModifier and TypeFieldDescriptionprivate ZonedDateTimeDate when theMovementended.private MovementGroupTheMovementGroup, theMovementbelongs to.private @NotNull StringInitiator of theMovement, who ordered or triggered it.private ZonedDateTimeLatest possible finish date of thisMovement.private MessageA message with the reason for thisMovement.private @NotNull StartModeDefines how the resultingTransportOrderis started.private @NotNull PriorityLevelA priority level of theMovement.private List<ProblemHistory> Reported problems on theMovement.private StringRefers to the demandedProductfor that theMovementhas been created.private StringWhere theMovementis picked up.private StringThe name of theLocationGroupwhere thesourceLocationbelongs to.private ZonedDateTimeDate when theMovementwas started.private ZonedDateTimeDate when theMovementcan be started earliest.private DefaultMovementStateThe current state theMovementresides in.private @Null(groups=Create.class) StringThe targetLocationof theMovement.private @NotNull StringALocationGroupcan also be set as target.private @NotNull BarcodeThe business key of theTransportUnitto move.private @NotNull MovementTypeType of theMovement.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddProblem(ProblemHistory problem) Add a new problem to theMovementsproblemHistory.booleanCheck whether thetargetLocationis empty.booleanbooleanNot the group and not the history.getGroup()getMode()getSku()getState()getType()inthashCode()booleanhasSKU()Checks if thisMovementhas aSKUset.voidinitStartDate(ZonedDateTime startDate) Set astartDatefor thisMovementif not already set.voidsetEndDate(ZonedDateTime endDate) voidsetInitiator(String initiator) voidsetInitiatorOrDefault(String initiator, String defaultVal) Set the initiator, or the given default value.voidsetMessage(Message message) voidvoidsetPersistentKey(String pKey) voidsetPriority(PriorityLevel priority) voidvoidsetSourceLocation(String sourceLocation) voidsetSourceLocationGroupName(String sourceLocationGroupName) voidsetStartDate(ZonedDateTime startDate) voidsetState(DefaultMovementState state) voidsetTargetLocation(String targetLocation) voidsetTargetLocationGroup(String targetLocationGroup) voidsetTransportUnitBk(Barcode transportUnitBk) voidsetType(MovementType type) toString()Not the group and not the history.Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersistMethods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Field Details
-
transportUnitBk
The business key of theTransportUnitto move. -
type
Type of theMovement. -
initiator
Initiator of theMovement, who ordered or triggered it. -
group
TheMovementGroup, theMovementbelongs to. -
sku
Refers to the demandedProductfor that theMovementhas 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 resultingTransportOrderis started. -
state
The current state theMovementresides in. -
message
A message with the reason for thisMovement. -
problems
Reported problems on theMovement. -
sourceLocation
Where theMovementis picked up. -
sourceLocationGroupName
The name of theLocationGroupwhere thesourceLocationbelongs to. -
targetLocation
The targetLocationof theMovement. This property is set before theMovementis started. -
targetLocationGroup
ALocationGroupcan also be set as target. At least one target must be set when theMovementis being started. -
startEarliestDate
Date when theMovementcan be started earliest. -
startDate
Date when theMovementwas started. -
latestDueDate
Latest possible finish date of thisMovement. -
endDate
Date when theMovementended.
-
-
Constructor Details
-
Movement
protected Movement()Dear JPA...
-
-
Method Details
-
setPersistentKey
- Overrides:
setPersistentKeyin classorg.ameba.integration.jpa.ApplicationEntity
-
addProblem
Add a new problem to theMovementsproblemHistory.- Parameters:
problem- The problem to store- Returns:
- true if added successfully
-
emptyTargetLocation
public boolean emptyTargetLocation()Check whether thetargetLocationis 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 thisMovementhas aSKUset.- Returns:
- true if so
-
initStartDate
Set astartDatefor thisMovementif not already set.- Parameters:
startDate- The start date to set
-
getTransportUnitBk
-
setTransportUnitBk
-
getType
-
setType
-
getInitiator
-
setInitiator
-
getGroup
-
getSku
-
setSku
-
getPriority
-
setPriority
-
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:
equalsin classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.ameba.integration.jpa.ApplicationEntity
-