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 Details

    • SapSendConsignmentToExternalFulfillmentSystemStrategy

      public SapSendConsignmentToExternalFulfillmentSystemStrategy()
  • Method Details

    • 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<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, 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)