Class SapSendConsignmentToExternalFulfillmentSystemStrategy
java.lang.Object
de.hybris.platform.sap.ysapcpiomsfulfillment.strategy.SapSendConsignmentToExternalFulfillmentSystemStrategy
- All Implemented Interfaces:
de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
public class SapSendConsignmentToExternalFulfillmentSystemStrategy
extends Object
implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SAPPlantLogSysOrgModelfindSapPlantLogSysOrg(ConsignmentModel consignment) Find SAP plant configuration informationprotected de.hybris.platform.processengine.BusinessProcessServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected de.hybris.platform.orderhistory.OrderHistoryServiceprotected de.hybris.platform.order.OrderServiceprotected SapCpiOrderOutboundConversionServiceprotected SapCpiOutboundServiceprotected SapPlantLogSysOrgServiceprotected de.hybris.platform.servicelayer.time.TimeServiceprotected OrderHistoryEntryModelinitializeOrderHistory(OrderModel order, String logicalSystem) Initialize an entry in the order history for the SAP order before sending it to the external systemprotected SAPOrderModelinitializeSapOrder(OrderHistoryEntryModel orderHistoryEntry, ConsignmentModel consignment) Initialize an SAP order from the parent Hybris orderprotected booleanisReplicationNotRequired(ConsignmentModel consignment) Checks if the consignment has already been sent to an external SAP systemvoidsendConsignment(ConsignmentModel consignment) protected rx.Single<org.springframework.http.ResponseEntity<Map>>sendOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry) Send the consignment to the external SAP system wrapped in an ordervoidsetBusinessProcessService(de.hybris.platform.processengine.BusinessProcessService businessProcessService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService) voidsetOrderService(de.hybris.platform.order.OrderService orderService) voidsetSapCpiOrderOutboundConversionService(SapCpiOrderOutboundConversionService sapCpiOrderOutboundConversionService) voidsetSapCpiOutboundService(SapCpiOutboundService sapCpiOutboundService) voidsetSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService) voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) protected voidterminateRedundantConsignmentProcess(ConsignmentModel consignment) Terminate the redundant consignment process which contains the consignment that has already been replicated to SAP backendprotected voidtriggerCancelConsignmentEvent(ConsignmentModel consignment, ConsignmentProcessModel consignmentProcess) Trigger consignment cancellation eventprotected voidtriggerConfirmConsignmentEvent(ConsignmentModel consignment, ConsignmentProcessModel consignmentProcess) Trigger consignment confirmation event
-
Constructor Details
-
SapSendConsignmentToExternalFulfillmentSystemStrategy
public SapSendConsignmentToExternalFulfillmentSystemStrategy()
-
-
Method Details
-
sendConsignment
- Specified by:
sendConsignmentin interfacede.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
isReplicationNotRequired
Checks if the consignment has already been sent to an external SAP system- Parameters:
consignment-- Returns:
- true if the consignment has already been replicated
-
sendOrderToScpi
protected rx.Single<org.springframework.http.ResponseEntity<Map>> sendOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry) Send the consignment to the external SAP system wrapped in an order- Parameters:
consignment-- Returns:
-
initializeOrderHistory
Initialize an entry in the order history for the SAP order before sending it to the external system- Parameters:
order-logicalSystem-- Returns:
-
initializeSapOrder
protected SAPOrderModel initializeSapOrder(OrderHistoryEntryModel orderHistoryEntry, ConsignmentModel consignment) Initialize an SAP order from the parent Hybris order- Parameters:
orderHistoryEntry-consignment-- Returns:
- SAPOrderModel
-
findSapPlantLogSysOrg
Find SAP plant configuration information- Parameters:
consignment-- Returns:
- SAPPlantLogSysOrgModel
-
terminateRedundantConsignmentProcess
Terminate the redundant consignment process which contains the consignment that has already been replicated to SAP backend- Parameters:
consignment-
-
triggerCancelConsignmentEvent
protected void triggerCancelConsignmentEvent(ConsignmentModel consignment, ConsignmentProcessModel consignmentProcess) Trigger consignment cancellation event- Parameters:
consignment-consignmentProcess-
-
triggerConfirmConsignmentEvent
protected void triggerConfirmConsignmentEvent(ConsignmentModel consignment, ConsignmentProcessModel consignmentProcess) Trigger consignment confirmation event- Parameters:
consignment-consignmentProcess-
-
getSapPlantLogSysOrgService
-
setSapPlantLogSysOrgService
-
getOrderHistoryService
protected de.hybris.platform.orderhistory.OrderHistoryService getOrderHistoryService() -
setOrderHistoryService
public void setOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService) -
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) -
getSapCpiOutboundService
-
setSapCpiOutboundService
-
getSapCpiOrderOutboundConversionService
-
setSapCpiOrderOutboundConversionService
public void setSapCpiOrderOutboundConversionService(SapCpiOrderOutboundConversionService sapCpiOrderOutboundConversionService) -
getOrderService
protected de.hybris.platform.order.OrderService getOrderService() -
setOrderService
public void setOrderService(de.hybris.platform.order.OrderService orderService) -
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService() -
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) -
getBusinessProcessService
protected de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService() -
setBusinessProcessService
public void setBusinessProcessService(de.hybris.platform.processengine.BusinessProcessService businessProcessService)
-