Interface AllocationService

    • Method Detail

      • createConsignments

        java.util.Collection<ConsignmentModel> createConsignments​(AbstractOrderModel order,
                                                                  java.lang.String code,
                                                                  SourcingResults results)
        Create consignments for the sourcing results gathered from the sourcing strategies executions.
        All consignments and order will be persisted after creations and updates.
        Parameters:
        order - - the order to create consignments for
        code - - the consignment code; never null
        results - - the sourcing results collected from the sourcing strategies; never null
        Returns:
        a collection of ConsignmentModel; never null
      • createConsignment

        ConsignmentModel createConsignment​(AbstractOrderModel order,
                                           java.lang.String code,
                                           SourcingResult result)
        Create a consignment for the sourcing result.
        The consignment and the order will be persisted after creation and updates.
        Parameters:
        order - - the order to create consignments for
        code - - the consignment code; never null
        result - - the sourcing results collected from the sourcing strategies; never null
        Returns:
        a ConsignmentModel; never null