Class AbstractConsignmentWorkflow

java.lang.Object
de.hybris.platform.warehousingbackoffice.actions.util.AbstractConsignmentWorkflow
Direct Known Subclasses:
ConfirmPickupAction, ConfirmShippedConsignmentAction

public abstract class AbstractConsignmentWorkflow extends Object
Abstract class which provides handy methods for workflow interactions
  • Field Details

  • Constructor Details

    • AbstractConsignmentWorkflow

      public AbstractConsignmentWorkflow()
  • Method Details

    • getConsignmentActionResult

      protected com.hybris.cockpitng.actions.ActionResult<ConsignmentModel> getConsignmentActionResult(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> actionContext, String successMessage, String failedMessage, ConsignmentStatus expectedStatus)
      Get the result of a shipping/pickup action for a given ActionContext which contains a ConsignmentModel
      Parameters:
      actionContext - the ActionContext containing the ConsignmentModel
      successMessage - the code of the success message to be displayed
      failedMessage - the code of the failure message to be displayed
      expectedStatus - the expected consignment status after the action
      Returns:
      the ActionResult
    • getUpdatedConsignmentStatus

      protected ConsignmentStatus getUpdatedConsignmentStatus(ConsignmentModel consignmentModel)
      Returns the updated ConsignmentStatus of the given ConsignmentModel as a result of workflow event triggered by this action
      Parameters:
      consignmentModel - the consignment to be updated
      Returns:
      updated status of the given consignment
    • isFulfillmentExternal

      protected boolean isFulfillmentExternal(ConsignmentModel consignmentModel)
      Determines whether a given ConsignmentModel is linked to an external fulfillment configuration
      Parameters:
      consignmentModel - the consignment to be verified
      Returns:
      flag to determine whether the fulfillment config is external or internal
    • getModelService

      protected ModelService getModelService()
    • getNotificationService

      protected com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()