Class S4CMSendConsignmentToExternalFulfillmentSystemStrategy

  • All Implemented Interfaces:
    de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy

    public class S4CMSendConsignmentToExternalFulfillmentSystemStrategy
    extends java.lang.Object
    implements de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
    • Constructor Detail

      • S4CMSendConsignmentToExternalFulfillmentSystemStrategy

        public S4CMSendConsignmentToExternalFulfillmentSystemStrategy()
    • Method Detail

      • sendConsignment

        public void sendConsignment​(ConsignmentModel consignment)
        Specified by:
        sendConsignment in interface de.hybris.platform.warehousing.externalfulfillment.strategy.SendConsignmentToExternalFulfillmentSystemStrategy
      • logServiceOrderPlacementErrorReason

        protected void logServiceOrderPlacementErrorReason​(java.lang.Throwable error)
      • sendOrderToScpi

        protected rx.Single<org.springframework.http.ResponseEntity<java.util.Map>> sendOrderToScpi​(ConsignmentModel consignment,
                                                                                                    OrderHistoryEntryModel orderHistoryEntry)
        Send the consignment to the external system after wrapping it within 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
      • isSentSuccessfully

        public static boolean isSentSuccessfully​(org.springframework.http.ResponseEntity<java.util.Map> responseEntityMap)
      • getPropertyValue

        public static java.lang.String getPropertyValue​(org.springframework.http.ResponseEntity<java.util.Map> responseEntityMap,
                                                        java.lang.String property)
      • getSapPlantLogSysOrgService

        public SapPlantLogSysOrgService getSapPlantLogSysOrgService()
        Returns:
        the sapPlantLogSysOrgService
      • setSapPlantLogSysOrgService

        public void setSapPlantLogSysOrgService​(SapPlantLogSysOrgService sapPlantLogSysOrgService)
        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

        public SapCpiServiceOrderOutboundService getSapCpiServiceOrderOutboundService()
        Returns:
        the sapCpiServiceOrderOutboundService
      • setSapCpiServiceOrderOutboundService

        public void setSapCpiServiceOrderOutboundService​(SapCpiServiceOrderOutboundService sapCpiServiceOrderOutboundService)
        Parameters:
        sapCpiServiceOrderOutboundService - the sapCpiServiceOrderOutboundService to set
      • 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