Class 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 Detail

      • SapSendConsignmentToExternalFulfillmentSystemStrategy

        public SapSendConsignmentToExternalFulfillmentSystemStrategy()
    • Method Detail

      • sendConsignment

        public void sendConsignment​(ConsignmentModel consignment)
        Specified by:
        sendConsignment in interface de.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 -
      • 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)
      • setSapCpiOutboundService

        public void setSapCpiOutboundService​(SapCpiOutboundService sapCpiOutboundService)
      • 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)