Class RFQToOrderCreateCmdImpl

    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field
        See Also:
        Constant Field Values
    • Constructor Detail

      • RFQToOrderCreateCmdImpl

        public RFQToOrderCreateCmdImpl()
    • Method Detail

      • reset

        public void reset()
        Reset the command
        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • createOrders

        public void createOrders()
                          throws ECException
        Creates an order for each winning response.
        This method does the following:
        1. Retrieves the list of winning responses for the incoming RFQ.
        2. For each response, performs the following steps.
        3. Add each item in the response to the order. The outcome is a single order with one or more order items.
        4. Call method editRFQOrder()
        5. Calls the OrderPrepareCmd that allocates inventory and performs Fulfillment Center related checks.
        6. Calls the OrderProcessCmd that handles payment processing.

      • getRfqId

        public java.lang.Long getRfqId()
        Returns the RFQ identifier.
        The RFQ Id.
      • getRfqOwner

        public java.lang.Long getRfqOwner()
        Returns the RFQ owner's member Id.
        The member Id of the RFQ owner.
      • performExecute

        public void performExecute()
                            throws ECException
        Completes the RFQ by creating a contract or an order for each winning response.
        This method does the following:
        1. Calls createOrders()
        2. Calls completeRFQState()
        3. if there is no more winning responses:
        4. 1) Sets the state of the RFQ to "Complete".
        5. 2) Sets the completion time for the RFQ.
        6. 3) Raises an UBF event to change the state of all the non-winning responses that are in evaluation for this RFQ

        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class AbstractECTargetableCommand
        See Also:
      • setRfqId

        public void setRfqId(java.lang.Long newRfqId)
        Assigns the incoming RFQ identifier to a member variable.
        newRfqId - The RFQ identifier.
      • setRfqOwner

        public void setRfqOwner(java.lang.Long newRfqOwner)
        Assigns the incoming member identifier of the RFQ owner to a member variable.
        newRfqOwner - The member Id of the RFQ owner.
      • validateParameters

        public void validateParameters()
                                throws ECException
        Validates the incoming parameters for this command.
        This method expects the following parameters :
        offering_id , the reference number of the RFQ that is to be completed

        This method does the following:
        1. Checks if an RFQ Id has been specified.
        2. Checks if the specified RFQ Id is valid.
        3. Checks if the RFQ is in the appropriate state.
        4. Calls checkContractParamters, if the endresult of this RFQ is a contract.
        5. Calls checkOrderParamters, if the endresult of this RFQ is an order.
        6. Throws an INVALID OFFERING ID Exception if the endresult is neither.

        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class AbstractECTargetableCommand
        See Also:
      • getPayment

        public java.util.Hashtable getPayment()
        Gets the payment
        Returns a Hashtable
      • setPayment

        public void setPayment(java.util.Hashtable thsPayment)
        Sets the payment
        payment - The payment to set
      • getBillTo

        public java.lang.String getBillTo()
        Gets the billTo
        Returns a String
      • setBillTo

        public void setBillTo(java.lang.String thsBillTo)
        Sets the billTo
        billTo - The billTo to set
      • getResId

        public java.lang.Long getResId()
        Gets the resId
        Returns a java.lang.Long
      • setResId

        public void setResId(java.lang.Long thsResId)
        Sets the resId
        resId - The resId to set