Class SourcingUtil


  • public class SourcingUtil
    extends WorkflowUtil
    this class is mainly for order sourcing
    • Constructor Detail

      • SourcingUtil

        public SourcingUtil()
    • Method Detail

      • waitForOrderStatus

        public void waitForOrderStatus​(OrderProcessModel orderProcess,
                                       OrderModel order,
                                       OrderStatus orderStatus,
                                       int timeOut)
                                throws java.lang.InterruptedException
        wait for order status
        Parameters:
        orderProcess -
        order -
        orderStatus -
        timeOut -
        Throws:
        java.lang.InterruptedException
      • runOrderProcessForOrderBasedPriority

        public OrderProcessModel runOrderProcessForOrderBasedPriority​(OrderModel orderModel,
                                                                      OrderStatus status)
                                                               throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • runDefaultOrderProcessForOrder

        public OrderProcessModel runDefaultOrderProcessForOrder​(OrderModel orderModel,
                                                                OrderStatus status)
                                                         throws java.lang.InterruptedException
        run default order process
        Parameters:
        orderModel -
        status -
        Returns:
        Throws:
        java.lang.InterruptedException
      • confirmDefaultConsignment

        public void confirmDefaultConsignment​(OrderProcessModel orderProcessModel,
                                              ConsignmentModel consignment)
        confirm default consignment
        Parameters:
        orderProcessModel -
        consignment -
      • validateConsignmentsAndTaskWorkflow

        public void validateConsignmentsAndTaskWorkflow​(OrderModel order,
                                                        int cancelledConsignmentsSize,
                                                        int readyConsignmentsSize,
                                                        int activeWorkflowsSize)
        Validates the workflow status of the consignment
        Parameters:
        order - the OrderModel to be validated
        cancelledConsignmentsSize - the number of expected cancelled consignments
        readyConsignmentsSize -
        activeWorkflowsSize -