Class DefaultTaskReallocateConsignmentsOnAsnCancelAction
- java.lang.Object
-
- de.hybris.platform.warehousing.taskassignment.actions.AbstractTaskAssignmentActions
-
- de.hybris.platform.warehousing.asn.actions.DefaultTaskReallocateConsignmentsOnAsnCancelAction
-
- All Implemented Interfaces:
AutomatedWorkflowTemplateJob
@Deprecated(since="18.11", forRemoval=true) public class DefaultTaskReallocateConsignmentsOnAsnCancelAction extends AbstractTaskAssignmentActionsDeprecated, for removal: This API element is subject to removal in a future version.since 18.11 - no replacement as this step of the workflow will be removedAn automated Task to ReallocateConsignmentModelthat were using theStockLevelModelfrom the cancelledAdvancedShippingNoticeModel
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCONSIGNMENT_ACTION_EVENT_NAMEDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringDECLINE_ENTRIESDeprecated, for removal: This API element is subject to removal in a future version.protected static java.lang.StringREALLOCATE_CONSIGNMENT_CHOICEDeprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
Constructors Constructor Description DefaultTaskReallocateConsignmentsOnAsnCancelAction()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidbuildDeclineParam(ConsignmentProcessModel processModel, java.util.List<DeclineEntry> entriesToReallocate)Deprecated, for removal: This API element is subject to removal in a future version.Build and save the context parameter for decline entries and set it into the given processprotected voidcleanDeclineParam(ConsignmentProcessModel processModel)Deprecated, for removal: This API element is subject to removal in a future version.Removes the old decline entries fromBusinessProcessModel.CONTEXTPARAMETERS(if any exists), before attempting to declineprotected AsnServicegetAsnService()Deprecated, for removal: This API element is subject to removal in a future version.protected InventoryEventServicegetInventoryEventService()Deprecated, for removal: This API element is subject to removal in a future version.protected java.util.List<ConsignmentStatus>getReallocableConsignmentStatusList()Deprecated, for removal: This API element is subject to removal in a future version.WorkflowDecisionModelperform(WorkflowActionModel workflowActionModel)Deprecated, for removal: This API element is subject to removal in a future version.execution method for the automated workflow jobprotected voidpopulateConsignmentEntries(ConsignmentModel consignment, java.util.List<DeclineEntry> declineEntries)Deprecated, for removal: This API element is subject to removal in a future version.Populates the consignment entries of a givenConsignmentModelprotected voidreallocateConsignments(AdvancedShippingNoticeModel attachedAsn, java.util.Collection<AllocationEventModel> allocationEvents, java.util.Set<java.lang.String> alreadyReallocatedConsignments)Deprecated, for removal: This API element is subject to removal in a future version.ReallocatesConsignmentModel(s) originally allocated from the stocklevels associated with the givenAdvancedShippingNoticeModelvoidsetAsnService(AsnService asnService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetInventoryEventService(InventoryEventService inventoryEventService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetReallocableConsignmentStatusList(java.util.List<ConsignmentStatus> reallocableConsignmentStatusList)Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class de.hybris.platform.warehousing.taskassignment.actions.AbstractTaskAssignmentActions
assignNewPrincipalToAction, getAttachedAsn, getAttachedConsignment, getConsignmentBusinessProcessService, getModelService, getWarehousingConsignmentWorkflowService, getWorkflowActionAndAssignPrincipal, setConsignmentBusinessProcessService, setModelService, setWarehousingConsignmentWorkflowService
-
-
-
-
Field Detail
-
CONSIGNMENT_ACTION_EVENT_NAME
protected static final java.lang.String CONSIGNMENT_ACTION_EVENT_NAME
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
REALLOCATE_CONSIGNMENT_CHOICE
protected static final java.lang.String REALLOCATE_CONSIGNMENT_CHOICE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
DECLINE_ENTRIES
protected static final java.lang.String DECLINE_ENTRIES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public WorkflowDecisionModel perform(WorkflowActionModel workflowActionModel)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AutomatedWorkflowTemplateJobexecution method for the automated workflow job- Parameters:
workflowActionModel- the workflow action that activated this method- Returns:
- the decision that should be activated after this action finishes
-
reallocateConsignments
protected void reallocateConsignments(AdvancedShippingNoticeModel attachedAsn, java.util.Collection<AllocationEventModel> allocationEvents, java.util.Set<java.lang.String> alreadyReallocatedConsignments)
Deprecated, for removal: This API element is subject to removal in a future version.ReallocatesConsignmentModel(s) originally allocated from the stocklevels associated with the givenAdvancedShippingNoticeModel- Parameters:
attachedAsn- the cancelledAdvancedShippingNoticeModelallocationEvents- collection ofAllocationEventModel(s) for which we want to reallocate consignmentsalreadyReallocatedConsignments- set containingConsignmentModel.CODE(s), which have already been reallocated for differentAllocationEventModel
-
populateConsignmentEntries
protected void populateConsignmentEntries(ConsignmentModel consignment, java.util.List<DeclineEntry> declineEntries)
Deprecated, for removal: This API element is subject to removal in a future version.Populates the consignment entries of a givenConsignmentModel- Parameters:
consignment- theConsignmentModelfor which entries needs to be populateddeclineEntries- the list ofDeclineEntrywhich contains the informations to populate
-
buildDeclineParam
protected void buildDeclineParam(ConsignmentProcessModel processModel, java.util.List<DeclineEntry> entriesToReallocate)
Deprecated, for removal: This API element is subject to removal in a future version.Build and save the context parameter for decline entries and set it into the given process- Parameters:
processModel-ConsignmentProcessModelthe process model for which the context parameters has to be registerentriesToReallocate- theDeclineEntry(s) to be reallocated
-
cleanDeclineParam
protected void cleanDeclineParam(ConsignmentProcessModel processModel)
Deprecated, for removal: This API element is subject to removal in a future version.Removes the old decline entries fromBusinessProcessModel.CONTEXTPARAMETERS(if any exists), before attempting to decline- Parameters:
processModel- theConsignmentProcessModelfor the consignment to be declined
-
getAsnService
protected AsnService getAsnService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setAsnService
public void setAsnService(AsnService asnService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getInventoryEventService
protected InventoryEventService getInventoryEventService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setInventoryEventService
public void setInventoryEventService(InventoryEventService inventoryEventService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getReallocableConsignmentStatusList
protected java.util.List<ConsignmentStatus> getReallocableConsignmentStatusList()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setReallocableConsignmentStatusList
public void setReallocableConsignmentStatusList(java.util.List<ConsignmentStatus> reallocableConsignmentStatusList)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-