Class AbstractConsignmentWorkflow
java.lang.Object
de.hybris.platform.warehousingbackoffice.actions.util.AbstractConsignmentWorkflow
- Direct Known Subclasses:
ConfirmPickupAction,ConfirmShippedConsignmentAction
Abstract class which provides handy methods for workflow interactions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 givenActionContextwhich contains aConsignmentModelprotected ModelServiceprotected com.hybris.backoffice.widgets.notificationarea.NotificationServiceprotected ConsignmentStatusgetUpdatedConsignmentStatus(ConsignmentModel consignmentModel) Returns the updatedConsignmentStatusof the givenConsignmentModelas a result of workflow event triggered by this actionprotected booleanisFulfillmentExternal(ConsignmentModel consignmentModel) Determines whether a givenConsignmentModelis linked to an external fulfillment configuration
-
Field Details
-
RETRIES
protected static final int RETRIES- See Also:
-
-
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 givenActionContextwhich contains aConsignmentModel- Parameters:
actionContext- theActionContextcontaining theConsignmentModelsuccessMessage- 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
Returns the updatedConsignmentStatusof the givenConsignmentModelas a result of workflow event triggered by this action- Parameters:
consignmentModel- the consignment to be updated- Returns:
- updated status of the given consignment
-
isFulfillmentExternal
Determines whether a givenConsignmentModelis 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
-
getNotificationService
protected com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService()
-