Class ReAllocateConsignmentAction
java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractProceduralAction<ConsignmentProcessModel>
de.hybris.platform.yacceleratorordermanagement.actions.consignment.ReAllocateConsignmentAction
- All Implemented Interfaces:
Action<ConsignmentProcessModel>
Declines the consignment.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
AbstractProceduralAction.Transition -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteAction(ConsignmentProcessModel consignmentProcessModel) Executes thisAction's business logic working on the givenBusinessProcessModel.protected voidexecuteDeclineActions(DeclineEntries declinedEntries) Executes aDeclineActionStrategy, for each declined entry according to the specified reason.protected AllocationServiceprotected Map<DeclineReason,DeclineActionStrategy> protected Map<DeclineReason,DeclineActionStrategy> protected WarehousingConsignmentWorkflowServiceprotected voidperformAutoDecline(AbstractOrderModel order, DeclineEntries autoDeclineEntries) Performs the auto decline for the givenDeclineEntriesand trigger the sourcing for the associatedAbstractOrderModelprotected voidperformManualDecline(DeclineEntries manualDeclineEntries) Performs the manual reallocation for the givenDeclineEntries, Also, it starts theConsignmentProcessModelas well asWorkflowModelfor task assignment for the newly created consignmentsvoidsetAllocationService(AllocationService allocationService) voidsetDeclineActionsMap(Map<DeclineReason, DeclineActionStrategy> declineActionsMap) voidsetExternalWarehouseDeclineActionsMap(Map<DeclineReason, DeclineActionStrategy> externalWarehouseDeclineActionsMap) voidsetOrderBusinessProcessService(WarehousingBusinessProcessService<AbstractOrderModel> orderBusinessProcessService) voidsetWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService) protected voidupdateConsignmentContextParameters(ConsignmentProcessModel consignmentProcessModel, Collection<BusinessProcessParameterModel> contextParams, BusinessProcessParameterModel declineEntriesParam, Boolean isAutoDecline) Removes the {#link DeclineEntries} from the consignment process context and add flag to indicate if autoDecline was done for the consignmentMethods inherited from class de.hybris.platform.processengine.action.AbstractProceduralAction
execute, getTransitionsMethods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
Field Details
-
DECLINE_ENTRIES
- See Also:
-
RE_SOURCE_CHOICE
- See Also:
-
IS_CONSIGNMENT_AUTO_DECLINED
- See Also:
-
-
Constructor Details
-
ReAllocateConsignmentAction
public ReAllocateConsignmentAction()
-
-
Method Details
-
executeAction
Description copied from class:AbstractProceduralActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Specified by:
executeActionin classAbstractProceduralAction<ConsignmentProcessModel>- Parameters:
consignmentProcessModel- The process context to work on.
-
updateConsignmentContextParameters
protected void updateConsignmentContextParameters(ConsignmentProcessModel consignmentProcessModel, Collection<BusinessProcessParameterModel> contextParams, BusinessProcessParameterModel declineEntriesParam, Boolean isAutoDecline) Removes the {#link DeclineEntries} from the consignment process context and add flag to indicate if autoDecline was done for the consignment- Parameters:
consignmentProcessModel- - process for the consignment to be declinedcontextParams- - context parameters for the consignment to be declineddeclineEntriesParam- - declined entries param in the context parameters for the consignment to be declinedisAutoDecline- - flag to indicate if auto decline was performed on the consignment
-
performAutoDecline
Performs the auto decline for the givenDeclineEntriesand trigger the sourcing for the associatedAbstractOrderModel- Parameters:
autoDeclineEntries- - entries to be declinedorder- - associatedAbstractOrderModelwith theDeclineEntries,for which sourcing needs to be triggered
-
performManualDecline
Performs the manual reallocation for the givenDeclineEntries, Also, it starts theConsignmentProcessModelas well asWorkflowModelfor task assignment for the newly created consignments- Parameters:
manualDeclineEntries- - entries to be reallocated to the selected warehouse
-
executeDeclineActions
Executes aDeclineActionStrategy, for each declined entry according to the specified reason.- Parameters:
declinedEntries- theDeclineEntriesto be declined
-
getAllocationService
-
setAllocationService
-
getOrderBusinessProcessService
-
setOrderBusinessProcessService
public void setOrderBusinessProcessService(WarehousingBusinessProcessService<AbstractOrderModel> orderBusinessProcessService) -
getDeclineActionsMap
-
setDeclineActionsMap
-
getExternalWarehouseDeclineActionsMap
-
setExternalWarehouseDeclineActionsMap
public void setExternalWarehouseDeclineActionsMap(Map<DeclineReason, DeclineActionStrategy> externalWarehouseDeclineActionsMap) -
getWarehousingConsignmentWorkflowService
-
setWarehousingConsignmentWorkflowService
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
-