Class ProcessUtil

    • Field Detail

      • ORDER_TEST_PROCESS

        protected static final java.lang.String ORDER_TEST_PROCESS
        See Also:
        Constant Field Values
      • ORDER_PROCESS_DEFINITION_NAME

        protected static final java.lang.String ORDER_PROCESS_DEFINITION_NAME
        See Also:
        Constant Field Values
      • RETURN_PROCESS_DEFINITION_NAME

        protected static final java.lang.String RETURN_PROCESS_DEFINITION_NAME
        See Also:
        Constant Field Values
      • CONSIGNMENT_ACTION_EVENT_NAME

        protected static final java.lang.String CONSIGNMENT_ACTION_EVENT_NAME
        See Also:
        Constant Field Values
      • ORDER_ACTION_EVENT_NAME

        protected static final java.lang.String ORDER_ACTION_EVENT_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProcessUtil

        public ProcessUtil()
    • Method Detail

      • waitUntilProcessIsNotRunning

        public void waitUntilProcessIsNotRunning​(BusinessProcessModel process,
                                                 int timeOut)
                                          throws java.lang.InterruptedException
        wait until process is not running
        Parameters:
        process -
        timeOut -
        Throws:
        java.lang.InterruptedException
      • waitUntilReturnProcessExist

        public void waitUntilReturnProcessExist​(ReturnRequestModel returnRequest,
                                                java.lang.String processName,
                                                int timeOut)
                                         throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • waitUntilConsignmentProcessIsNotRunning

        public void waitUntilConsignmentProcessIsNotRunning​(OrderProcessModel orderProcessModel,
                                                            ConsignmentModel consignment,
                                                            int timeOut)
                                                     throws java.lang.InterruptedException
        wait for consignment process is not running
        Parameters:
        orderProcessModel -
        consignment -
        timeOut -
        Throws:
        java.lang.InterruptedException
      • waitUntilReturnProcessIsNotRunning

        public void waitUntilReturnProcessIsNotRunning​(ReturnRequestModel returnRequestModel,
                                                       int timeOut)
                                                throws java.lang.InterruptedException
        wait for return process is not running
        Parameters:
        returnRequestModel -
        timeOut -
        Throws:
        java.lang.InterruptedException
      • moveOrderProcess

        public void moveOrderProcess​(OrderModel order,
                                     OrderProcessModel orderProcessModel,
                                     java.lang.String choice)
                              throws java.lang.InterruptedException
        Moves the OrderProcessModel according to the given choice and waits for the consignment and order process to finish or until timeout occurs
        Parameters:
        order - the given OrderModel
        orderProcessModel - the associated OrderProcessModel with the given OrderModel
        choice - the choice with which to move the given OrderProcessModel
        Throws:
        java.lang.InterruptedException