com.ibm.commerce.tools.optools.order.commands

Interface CSREmailOrderCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, ToolsControllerCommand
    All Known Implementing Classes:
    CSREmailOrderCmdImpl


    public interface CSREmailOrderCmd
    extends ToolsControllerCommand
    Composes and sends an OrderReceived message with the supplied recipient, sender and subject.

    Behavior

    • Composes an OrderReceived message for an order specified by orderId
    • Sends the message to the recipient specified by recipient
    • If sender, subject, CC and BCC are provided, they will be used to configure the email.

    Parameters

    XML
    This is an input XML string that contains all required data for sending the message type.
     Example xml_string:
            <?xml version="1.0" encoding "UTF-8">
                    <orderId>10001</orderId>
                    <messageType>126</messageType>
                    <recipient>jones@abc.com</recipient>
                    <sender>James Woo</sender>
                    <subject>Order summary report</subject>
                    <CC>  </CC>
                    <BCC>  </BCC>
                    <sender>  </sender>
                    <URL>DialogNavigation</URL>
                    <XMLFile>xml file name</XMLFile>
     </xml>
     

    Exception Conditions

    • Throws ECApplication if the email can not be composed and sent.

    Error View:

    • Returns to the view specified by the URL element in the xml_string.