Class S4CMSendConsignmentToExternalFulfillmentSystemStrategy
java.lang.Object
de.hybris.platform.ysapcpis4cmomsfulfillment.strategy.S4CMSendConsignmentToExternalFulfillmentSystemStrategy
- All Implemented Interfaces:
de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
public class S4CMSendConsignmentToExternalFulfillmentSystemStrategy
extends Object
implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.servicelayer.model.ModelServicede.hybris.platform.orderhistory.OrderHistoryServicede.hybris.platform.order.OrderServicestatic StringgetPropertyValue(org.springframework.http.ResponseEntity<Map> responseEntityMap, String property) 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 orderstatic booleanisSentSuccessfully(org.springframework.http.ResponseEntity<Map> responseEntityMap) protected voidvoidsendConsignment(ConsignmentModel consignment) protected rx.Single<org.springframework.http.ResponseEntity<Map>>sendOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry) Send the consignment to the external system after wrapping it within an ordervoidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService) voidsetOrderService(de.hybris.platform.order.OrderService orderService) voidsetSapCpiServiceOrderOutboundConversionService(SapCpiServiceOrderOutboundConversionService sapCpiServiceOrderOutboundConversionService) voidsetSapCpiServiceOrderOutboundService(SapCpiServiceOrderOutboundService sapCpiServiceOrderOutboundService) voidsetSapPlantLogSysOrgService(SapPlantLogSysOrgService sapPlantLogSysOrgService) voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService)
-
Constructor Details
-
S4CMSendConsignmentToExternalFulfillmentSystemStrategy
public S4CMSendConsignmentToExternalFulfillmentSystemStrategy()
-
-
Method Details
-
sendConsignment
- Specified by:
sendConsignmentin interfacede.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
-
logServiceOrderPlacementErrorReason
-
sendOrderToScpi
protected rx.Single<org.springframework.http.ResponseEntity<Map>> sendOrderToScpi(ConsignmentModel consignment, OrderHistoryEntryModel orderHistoryEntry) Send the consignment to the external system after wrapping it within 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
-
isSentSuccessfully
public static boolean isSentSuccessfully(org.springframework.http.ResponseEntity<Map> responseEntityMap) -
getPropertyValue
-
getSapPlantLogSysOrgService
- Returns:
- the sapPlantLogSysOrgService
-
setSapPlantLogSysOrgService
- Parameters:
sapPlantLogSysOrgService- the sapPlantLogSysOrgService to set
-
getOrderHistoryService
public de.hybris.platform.orderhistory.OrderHistoryService getOrderHistoryService()- Returns:
- the orderHistoryService
-
setOrderHistoryService
public void setOrderHistoryService(de.hybris.platform.orderhistory.OrderHistoryService orderHistoryService) - Parameters:
orderHistoryService- the orderHistoryService to set
-
getModelService
public de.hybris.platform.servicelayer.model.ModelService getModelService()- Returns:
- the modelService
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) - Parameters:
modelService- the modelService to set
-
getSapCpiServiceOrderOutboundService
- Returns:
- the sapCpiServiceOrderOutboundService
-
setSapCpiServiceOrderOutboundService
public void setSapCpiServiceOrderOutboundService(SapCpiServiceOrderOutboundService sapCpiServiceOrderOutboundService) - Parameters:
sapCpiServiceOrderOutboundService- the sapCpiServiceOrderOutboundService to set
-
getSapCpiServiceOrderOutboundConversionService
-
setSapCpiServiceOrderOutboundConversionService
public void setSapCpiServiceOrderOutboundConversionService(SapCpiServiceOrderOutboundConversionService sapCpiServiceOrderOutboundConversionService) -
getOrderService
public de.hybris.platform.order.OrderService getOrderService()- Returns:
- the orderService
-
setOrderService
public void setOrderService(de.hybris.platform.order.OrderService orderService) - Parameters:
orderService- the orderService to set
-
getTimeService
public de.hybris.platform.servicelayer.time.TimeService getTimeService()- Returns:
- the timeService
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) - Parameters:
timeService- the timeService to set
-