Package org.openwms.wms.receiving.impl
Interface ReceivingService<T extends CaptureRequestVO>
- All Known Implementing Classes:
ReceivingServiceImpl
public interface ReceivingService<T extends CaptureRequestVO>
A ReceivingService manages
ReceivingOrder
s.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescription@NotNull ReceivingOrder
cancelOrder
(@NotBlank String pKey) Cancel aReceivingOrder
.@NotNull Optional
<ReceivingOrder> Capturing on aReceivingOrder
means: Decrease one of theReceivingOrderPosition
s by the received amount of the givenProduct
Create physicalPackagingUnit
(s) from the received quantityvoid
captureBlindReceipts
(@NotNull List<T> requests) Capture an unexpected receipt (aka Blind Receipt) that has no reference to aReceivingOrder
.@NotNull ReceivingOrder
changeState
(@NotBlank String pKey, @NotNull OrderState state) Change the state of aReceivingOrder
.@NotNull ReceivingOrder
Complete aReceivingOrder
and all positions.@NotNull ReceivingOrder
createOrder
(@NotNull ReceivingOrder order) Create aReceivingOrder
with containingReceivingOrderPosition
.@NotNull List
<ReceivingOrder> findAll()
Find and return all existingReceivingOrder
s.findByOrderId
(@NotBlank String orderId) Find and return aReceivingOrder
identified by its business key.@NotNull ReceivingOrder
findByPKey
(@NotBlank String pKey) Find and return aReceivingOrder
identified by its synthetic persistent key.@NotNull ReceivingOrder
update
(@NotBlank String pKey, @NotNull ReceivingOrder receivingOrder) Update an existingReceivingOrder
with the given data.
-
Method Details
-
createOrder
Create aReceivingOrder
with containingReceivingOrderPosition
.- Parameters:
order
- The ReceivingOrder instance to create- Returns:
- The saved instance
-
capture
@NotNull @NotNull Optional<ReceivingOrder> capture(@NotBlank @NotBlank String pKey, @NotNull @Valid @NotNull @Valid List<T> requests) Capturing on aReceivingOrder
means:- Decrease one of the
ReceivingOrderPosition
s by the received amount of the givenProduct
- Create physical
PackagingUnit
(s) from the received quantity
- Parameters:
pKey
- The persistent key of the ReceivingOrderrequests
- Contains all the capturing information according to the process in use- Returns:
- The updated ReceivingOrder instance with updated positions
- Decrease one of the
-
captureBlindReceipts
Capture an unexpected receipt (aka Blind Receipt) that has no reference to aReceivingOrder
.- Create physical
PackagingUnit
(s) from the received quantity
- Parameters:
requests
- Contains all the capturing information according to the process in use
- Create physical
-
cancelOrder
Cancel aReceivingOrder
.- Parameters:
pKey
- The synthetic persistent key- Returns:
- The cancelled instance
- Throws:
CancellationDeniedException
- in case the cancellation is not allowed
-
changeState
@NotNull @NotNull ReceivingOrder changeState(@NotBlank @NotBlank String pKey, @NotNull @NotNull OrderState state) Change the state of aReceivingOrder
.- Parameters:
pKey
- The synthetic persistent keystate
- The new state- Returns:
- The updated instance
- Throws:
CancellationDeniedException
- in case the state change is not allowed
-
findAll
Find and return all existingReceivingOrder
s.- Returns:
- A list of ReceivingOrders, never null
-
findByPKey
Find and return aReceivingOrder
identified by its synthetic persistent key.- Parameters:
pKey
- The synthetic persistent key- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- if not found
-
findByOrderId
Find and return aReceivingOrder
identified by its business key.- Parameters:
orderId
- The business key- Returns:
- The order instance
-
update
@NotNull @NotNull ReceivingOrder update(@NotBlank @NotBlank String pKey, @NotNull @NotNull ReceivingOrder receivingOrder) Update an existingReceivingOrder
with the given data.- Parameters:
pKey
- The synthetic persistent keyreceivingOrder
- The representation to update- Returns:
- The updated instance
- Throws:
org.ameba.exception.NotFoundException
- if not found
-
complete
Complete aReceivingOrder
and all positions. Satisfy quantities and set the state toCOMPLETED
.- Parameters:
pKey
- The synthetic persistent key- Returns:
- The updated instance
-