Package org.switchyard.quickstarts.demo.multiapp

Examples of org.switchyard.quickstarts.demo.multiapp.Order


     * @param from Order element.
     * @return Order instance.
     */
    @Transformer(from = "{urn:switchyard-quickstart-demo:multiapp:1.0}submitOrder")
    public Order transform(Element from) {
        return new Order()
            .setOrderId(getElementValue(from, ORDER_ID))
            .setItemId(getElementValue(from, ITEM_ID))
            .setQuantity(Integer.valueOf(getElementValue(from, QUANTITY)));
    }
View Full Code Here


    }

    @Test
    public void testTransformJavaToXML() throws Exception {
        Order testOrder = new Order()
            .setOrderId("PO-19838-XYZ")
            .setItemId("BUTTER")
            .setQuantity(100);

        Element result = submitOrder
View Full Code Here

    @ServiceOperation("OrderService.submitOrder")
    private Invoker submitOrder;

    @Test
    public void testOrderAccepted() throws Exception {
        Order testOrder = new Order()
            .setOrderId("ORDER01")
            .setItemId("BUTTER")
            .setQuantity(100);

        OrderAck testAck = submitOrder
View Full Code Here

TOP

Related Classes of org.switchyard.quickstarts.demo.multiapp.Order

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.