public class DefaultConsignmentCancellationService extends java.lang.Object implements ConsignmentCancellationService
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CANCEL_CONSIGNMENT_CHOICE |
protected static java.lang.String |
COMMENT_SUBJECT |
protected static java.lang.String |
CONSIGNMENT_ACTION_EVENT_NAME |
| Constructor and Description |
|---|
DefaultConsignmentCancellationService() |
protected static final java.lang.String COMMENT_SUBJECT
protected static final java.lang.String CONSIGNMENT_ACTION_EVENT_NAME
protected static final java.lang.String CANCEL_CONSIGNMENT_CHOICE
public DefaultConsignmentCancellationService()
public void processConsignmentCancellation(OrderCancelResponse orderCancelResponse)
ConsignmentCancellationServiceOrderCancelResponse. It creates cancellation events accordingly and will
trigger another sourcing if necessary
It cancels all the consignments for the given productprocessConsignmentCancellation in interface ConsignmentCancellationServiceorderCancelResponse - the order cancel responseprotected void moveProcessAndTerminateWorkflow(OrderCancelResponse orderCancelResponse, java.util.Map<AbstractOrderEntryModel,java.lang.Long> orderCancelEntriesCompleted, OrderCancelEntry orderCancelEntry)
orderCancelResponse - the OrderCancelResponseorderCancelEntriesCompleted - the map of the completed order cancel entries and their valuesorderCancelEntry - the current OrderCancelEntryprotected java.lang.Long getAlreadyCancelledQty(java.util.Map<AbstractOrderEntryModel,java.lang.Long> orderCancelEntriesCompleted, OrderCancelEntry orderCancelEntry)
orderCancelEntriesCompleted - the map of the completed order cancel entries and their valuesorderCancelEntry - the current OrderCancelEntrypublic java.util.Map<AbstractOrderEntryModel,java.lang.Long> cancelConsignment(ConsignmentModel consignment, OrderCancelResponse orderCancelResponse)
ConsignmentCancellationServicecancelConsignment in interface ConsignmentCancellationServiceconsignment - the consignment to cancelorderCancelResponse - the order cancel responseprotected void createCancellationEventForInternalWarehouse(ConsignmentEntryModel consignmentEntry, CancelReason myReason)
consignmentEntry - myReason - protected WarehousingCommentService getConsignmentEntryCommentService()
public void setConsignmentEntryCommentService(WarehousingCommentService consignmentEntryCommentService)
protected GuidKeyGenerator getGuidKeyGenerator()
public void setGuidKeyGenerator(GuidKeyGenerator guidKeyGenerator)
protected InventoryEventService getInventoryEventService()
public void setInventoryEventService(InventoryEventService inventoryEventService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected java.util.List<ConsignmentStatus> getNonCancellableConsignmentStatus()
public void setNonCancellableConsignmentStatus(java.util.List<ConsignmentStatus> nonCancellableConsignmentStatus)
protected WarehousingBusinessProcessService<ConsignmentModel> getConsignmentBusinessProcessService()
public void setConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService)
protected WarehousingConsignmentWorkflowService getWarehousingConsignmentWorkflowService()
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
Copyright © 2018 SAP SE. All Rights Reserved.