Class AbstractConsignmentWorkflow
- java.lang.Object
-
- de.hybris.platform.warehousingbackoffice.actions.util.AbstractConsignmentWorkflow
-
- Direct Known Subclasses:
ConfirmPickupAction
,ConfirmShippedConsignmentAction
public abstract class AbstractConsignmentWorkflow extends java.lang.Object
Abstract class which provides handy methods for workflow interactions
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
RETRIES
-
Constructor Summary
Constructors Constructor Description AbstractConsignmentWorkflow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 givenActionContext
which contains aConsignmentModel
protected ModelService
getModelService()
protected com.hybris.backoffice.widgets.notificationarea.NotificationService
getNotificationService()
protected ConsignmentStatus
getUpdatedConsignmentStatus(ConsignmentModel consignmentModel)
Returns the updatedConsignmentStatus
of the givenConsignmentModel
as a result of workflow event triggered by this actionprotected boolean
isFulfillmentExternal(ConsignmentModel consignmentModel)
Determines whether a givenConsignmentModel
is linked to an external fulfillment configuration
-
-
-
Field Detail
-
RETRIES
protected static final int RETRIES
- See Also:
- Constant Field Values
-
-
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 givenActionContext
which contains aConsignmentModel
- Parameters:
actionContext
- theActionContext
containing theConsignmentModel
successMessage
- the code of the success message to be displayedfailedMessage
- the code of the failure message to be displayedexpectedStatus
- the expected consignment status after the action- Returns:
- the
ActionResult
-
getUpdatedConsignmentStatus
protected ConsignmentStatus getUpdatedConsignmentStatus(ConsignmentModel consignmentModel)
Returns the updatedConsignmentStatus
of the givenConsignmentModel
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 givenConsignmentModel
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()
-
-