Class AbstractConsignmentWorkflow

    • Constructor Detail

      • AbstractConsignmentWorkflow

        public AbstractConsignmentWorkflow()
    • Method Detail

      • getConsignmentActionResult

        protected com.hybris.cockpitng.actions.ActionResult<ConsignmentModel> getConsignmentActionResult​(com.hybris.cockpitng.actions.ActionContext<ConsignmentModel> actionContext,
                                                                                                         java.lang.String successMessage,
                                                                                                         java.lang.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()