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 Details

    • CONSIGNMENT_ACTION_EVENT_NAME

      protected static final String CONSIGNMENT_ACTION_EVENT_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • REALLOCATE_CONSIGNMENT_CHOICE

      protected static final String REALLOCATE_CONSIGNMENT_CHOICE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DECLINE_ENTRIES

      protected static final String 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

      public WorkflowDecisionModel perform(WorkflowActionModel workflowActionModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: AutomatedWorkflowTemplateJob
      execution 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.
      Reallocates ConsignmentModel(s) originally allocated from the stocklevels associated with the given AdvancedShippingNoticeModel
      Parameters:
      attachedAsn - the cancelled AdvancedShippingNoticeModel
      allocationEvents - collection of AllocationEventModel(s) for which we want to reallocate consignments
      alreadyReallocatedConsignments - set containing ConsignmentModel.CODE(s), which have already been reallocated for different AllocationEventModel
    • 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 given ConsignmentModel
      Parameters:
      consignment - the ConsignmentModel for which entries needs to be populated
      declineEntries - the list of DeclineEntry which 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 - ConsignmentProcessModel the process model for which the context parameters has to be register
      entriesToReallocate - the DeclineEntry(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 from BusinessProcessModel.CONTEXTPARAMETERS(if any exists), before attempting to decline
      Parameters:
      processModel - the ConsignmentProcessModel for 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 List<ConsignmentStatus> 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.