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 java.lang.Object implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
-
Constructor Summary
Constructors Constructor Description SapSendConsignmentToExternalFulfillmentSystemStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SAPPlantLogSysOrgModelfindSapPlantLogSysOrg(ConsignmentModel consignment)Find SAP plant configuration informationprotected de.hybris.platform.processengine.BusinessProcessServicegetBusinessProcessService()protected de.hybris.platform.servicelayer.model.ModelServicegetModelService()protected de.hybris.platform.orderhistory.OrderHistoryServicegetOrderHistoryService()protected de.hybris.platform.order.OrderServicegetOrderService()protected SapCpiOrderOutboundConversionServicegetSapCpiOrderOutboundConversionService()protected SapCpiOutboundServicegetSapCpiOutboundService()protected SapPlantLogSysOrgServicegetSapPlantLogSysOrgService()protected de.hybris.platform.servicelayer.time.TimeServicegetTimeService()protected OrderHistoryEntryModelinitializeOrderHistory(OrderModel order, java.lang.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<java.util.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
-
-
-
Method Detail
-
sendConsignment
public void sendConsignment(ConsignmentModel consignment)
- Specified by:
sendConsignmentin interfacede.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
isReplicationNotRequired
protected boolean isReplicationNotRequired(ConsignmentModel consignment)
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<java.util.Map>> sendOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry)
Send the consignment to the external SAP system wrapped in an order- Parameters:
consignment-- Returns:
-
initializeOrderHistory
protected OrderHistoryEntryModel initializeOrderHistory(OrderModel order, java.lang.String logicalSystem)
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
protected SAPPlantLogSysOrgModel findSapPlantLogSysOrg(ConsignmentModel consignment)
Find SAP plant configuration information- Parameters:
consignment-- Returns:
- SAPPlantLogSysOrgModel
-
terminateRedundantConsignmentProcess
protected void terminateRedundantConsignmentProcess(ConsignmentModel consignment)
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
protected SapPlantLogSysOrgService getSapPlantLogSysOrgService()
-
setSapPlantLogSysOrgService
public void setSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService)
-
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
protected SapCpiOutboundService getSapCpiOutboundService()
-
setSapCpiOutboundService
public void setSapCpiOutboundService(SapCpiOutboundService sapCpiOutboundService)
-
getSapCpiOrderOutboundConversionService
protected SapCpiOrderOutboundConversionService 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)
-
-