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 AbstractTaskAssignmentActions
Deprecated, 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 removed
An automated Task to Reallocate
ConsignmentModel that were using the StockLevelModel from the cancelled AdvancedShippingNoticeModel-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version.protected static final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildDeclineParam(ConsignmentProcessModel processModel, 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 AsnServiceDeprecated, for removal: This API element is subject to removal in a future version.protected InventoryEventServiceDeprecated, for removal: This API element is subject to removal in a future version.protected List<ConsignmentStatus>Deprecated, for removal: This API element is subject to removal in a future version.perform(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, 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, Collection<AllocationEventModel> allocationEvents, Set<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(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 Details
-
CONSIGNMENT_ACTION_EVENT_NAME
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
REALLOCATE_CONSIGNMENT_CHOICE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DECLINE_ENTRIES
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
DefaultTaskReallocateConsignmentsOnAsnCancelAction
public DefaultTaskReallocateConsignmentsOnAsnCancelAction()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
perform
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, Collection<AllocationEventModel> allocationEvents, Set<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, 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, 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
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setAsnService
Deprecated, for removal: This API element is subject to removal in a future version. -
getInventoryEventService
Deprecated, for removal: This API element is subject to removal in a future version. -
setInventoryEventService
Deprecated, for removal: This API element is subject to removal in a future version. -
getReallocableConsignmentStatusList
Deprecated, for removal: This API element is subject to removal in a future version. -
setReallocableConsignmentStatusList
public void setReallocableConsignmentStatusList(List<ConsignmentStatus> reallocableConsignmentStatusList) Deprecated, for removal: This API element is subject to removal in a future version.
-