public class ReAllocateConsignmentAction extends AbstractProceduralAction<ConsignmentProcessModel>
AbstractProceduralAction.Transition| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DECLINE_ENTRIES |
protected static java.lang.String |
IS_CONSIGNMENT_AUTO_DECLINED |
protected static java.lang.String |
RE_SOURCE_CHOICE |
modelService, processParameterHelperERROR_RETURN_CODE, RETRY_RETURN_CODE| Constructor and Description |
|---|
ReAllocateConsignmentAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeAction(ConsignmentProcessModel consignmentProcessModel)
Executes this
Action's business logic working on the given BusinessProcessModel. |
protected void |
executeDeclineActions(DeclineEntries declinedEntries)
Executes a
DeclineActionStrategy,
for each declined entry according to the specified reason. |
protected AllocationService |
getAllocationService() |
protected java.util.Map<DeclineReason,DeclineActionStrategy> |
getDeclineActionsMap() |
protected java.util.Map<DeclineReason,DeclineActionStrategy> |
getExternalWarehouseDeclineActionsMap() |
protected WarehousingBusinessProcessService<AbstractOrderModel> |
getOrderBusinessProcessService() |
protected WarehousingConsignmentWorkflowService |
getWarehousingConsignmentWorkflowService() |
protected void |
performAutoDecline(AbstractOrderModel order,
DeclineEntries autoDeclineEntries)
Performs the auto decline for the given
DeclineEntries and trigger the sourcing for the associated AbstractOrderModel |
protected void |
performManualDecline(DeclineEntries manualDeclineEntries)
Performs the manual reallocation for the given
DeclineEntries,
Also, it starts the ConsignmentProcessModel as well as WorkflowModel for task assignment for the newly created consignments |
void |
setAllocationService(AllocationService allocationService) |
void |
setDeclineActionsMap(java.util.Map<DeclineReason,DeclineActionStrategy> declineActionsMap) |
void |
setExternalWarehouseDeclineActionsMap(java.util.Map<DeclineReason,DeclineActionStrategy> externalWarehouseDeclineActionsMap) |
void |
setOrderBusinessProcessService(WarehousingBusinessProcessService<AbstractOrderModel> orderBusinessProcessService) |
void |
setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService) |
protected void |
updateConsignmentContextParameters(ConsignmentProcessModel consignmentProcessModel,
java.util.Collection<BusinessProcessParameterModel> contextParams,
BusinessProcessParameterModel declineEntriesParam,
java.lang.Boolean isAutoDecline)
Removes the {#link DeclineEntries} from the consignment process context and add flag to indicate if autoDecline was done for the consignment
|
execute, getTransitionscreateTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperprotected static final java.lang.String DECLINE_ENTRIES
protected static final java.lang.String RE_SOURCE_CHOICE
protected static final java.lang.String IS_CONSIGNMENT_AUTO_DECLINED
public void executeAction(ConsignmentProcessModel consignmentProcessModel)
AbstractProceduralActionAction's business logic working on the given BusinessProcessModel.executeAction in class AbstractProceduralAction<ConsignmentProcessModel>consignmentProcessModel - The process context to work on.protected void updateConsignmentContextParameters(ConsignmentProcessModel consignmentProcessModel, java.util.Collection<BusinessProcessParameterModel> contextParams, BusinessProcessParameterModel declineEntriesParam, java.lang.Boolean isAutoDecline)
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 consignmentprotected void performAutoDecline(AbstractOrderModel order, DeclineEntries autoDeclineEntries)
DeclineEntries and trigger the sourcing for the associated AbstractOrderModelautoDeclineEntries - - entries to be declinedorder - - associated AbstractOrderModel with the DeclineEntries,for which sourcing needs to be triggeredprotected void performManualDecline(DeclineEntries manualDeclineEntries)
DeclineEntries,
Also, it starts the ConsignmentProcessModel as well as WorkflowModel for task assignment for the newly created consignmentsmanualDeclineEntries - - entries to be reallocated to the selected warehouseprotected void executeDeclineActions(DeclineEntries declinedEntries)
DeclineActionStrategy,
for each declined entry according to the specified reason.declinedEntries - the DeclineEntries to be declinedprotected AllocationService getAllocationService()
public void setAllocationService(AllocationService allocationService)
protected WarehousingBusinessProcessService<AbstractOrderModel> getOrderBusinessProcessService()
public void setOrderBusinessProcessService(WarehousingBusinessProcessService<AbstractOrderModel> orderBusinessProcessService)
protected java.util.Map<DeclineReason,DeclineActionStrategy> getDeclineActionsMap()
public void setDeclineActionsMap(java.util.Map<DeclineReason,DeclineActionStrategy> declineActionsMap)
protected java.util.Map<DeclineReason,DeclineActionStrategy> getExternalWarehouseDeclineActionsMap()
public void setExternalWarehouseDeclineActionsMap(java.util.Map<DeclineReason,DeclineActionStrategy> externalWarehouseDeclineActionsMap)
protected WarehousingConsignmentWorkflowService getWarehousingConsignmentWorkflowService()
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
Copyright © 2018 SAP SE. All Rights Reserved.