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 Details

    • S4CMSendConsignmentToExternalFulfillmentSystemStrategy

      public S4CMSendConsignmentToExternalFulfillmentSystemStrategy()
  • Method Details

    • sendConsignment

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

      protected void logServiceOrderPlacementErrorReason(Throwable error)
    • 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

      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
    • isSentSuccessfully

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

      public static String getPropertyValue(org.springframework.http.ResponseEntity<Map> responseEntityMap, 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
    • getSapCpiServiceOrderOutboundConversionService

      public SapCpiServiceOrderOutboundConversionService 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