Class DefaultTaskReallocateConsignmentsOnAsnCancelAction
- java.lang.Object
-
- de.hybris.platform.warehousing.taskassignment.actions.AbstractTaskAssignmentActions
-
- de.hybris.platform.warehousing.asn.actions.DefaultTaskReallocateConsignmentsOnAsnCancelAction
-
- All Implemented Interfaces:
AutomatedWorkflowTemplateJob
@Deprecated public class DefaultTaskReallocateConsignmentsOnAsnCancelAction extends AbstractTaskAssignmentActions
Deprecated.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.protected static java.lang.StringDECLINE_ENTRIESDeprecated.protected static java.lang.StringREALLOCATE_CONSIGNMENT_CHOICEDeprecated.
-
Constructor Summary
Constructors Constructor Description DefaultTaskReallocateConsignmentsOnAsnCancelAction()Deprecated.
-
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.Build and save the context parameter for decline entries and set it into the given processprotected voidcleanDeclineParam(ConsignmentProcessModel processModel)Deprecated.Removes the old decline entries fromBusinessProcessModel.CONTEXTPARAMETERS(if any exists), before attempting to declineprotected AsnServicegetAsnService()Deprecated.protected InventoryEventServicegetInventoryEventService()Deprecated.protected java.util.List<ConsignmentStatus>getReallocableConsignmentStatusList()Deprecated.WorkflowDecisionModelperform(WorkflowActionModel workflowActionModel)Deprecated.execution method for the automated workflow jobprotected voidpopulateConsignmentEntries(ConsignmentModel consignment, java.util.List<DeclineEntry> declineEntries)Deprecated.Populates the consignment entries of a givenConsignmentModelprotected voidreallocateConsignments(AdvancedShippingNoticeModel attachedAsn, java.util.Collection<AllocationEventModel> allocationEvents, java.util.Set<java.lang.String> alreadyReallocatedConsignments)Deprecated.ReallocatesConsignmentModel(s) originally allocated from the stocklevels associated with the givenAdvancedShippingNoticeModelvoidsetAsnService(AsnService asnService)Deprecated.voidsetInventoryEventService(InventoryEventService inventoryEventService)Deprecated.voidsetReallocableConsignmentStatusList(java.util.List<ConsignmentStatus> reallocableConsignmentStatusList)Deprecated.-
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.- See Also:
- Constant Field Values
-
REALLOCATE_CONSIGNMENT_CHOICE
protected static final java.lang.String REALLOCATE_CONSIGNMENT_CHOICE
Deprecated.- See Also:
- Constant Field Values
-
DECLINE_ENTRIES
protected static final java.lang.String DECLINE_ENTRIES
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public WorkflowDecisionModel perform(WorkflowActionModel workflowActionModel)
Deprecated.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.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.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.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.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.
-
setAsnService
public void setAsnService(AsnService asnService)
Deprecated.
-
getInventoryEventService
protected InventoryEventService getInventoryEventService()
Deprecated.
-
setInventoryEventService
public void setInventoryEventService(InventoryEventService inventoryEventService)
Deprecated.
-
getReallocableConsignmentStatusList
protected java.util.List<ConsignmentStatus> getReallocableConsignmentStatusList()
Deprecated.
-
setReallocableConsignmentStatusList
public void setReallocableConsignmentStatusList(java.util.List<ConsignmentStatus> reallocableConsignmentStatusList)
Deprecated.
-
-