Package org.jboss.soa.esb.store

Examples of org.jboss.soa.esb.store.Customer


        long processInstanceId = Long.parseLong(args[0]);
        MessageHelper.setLongValue(esbMessage, Constants.PROCESS_INSTANCE_ID, processInstanceId);

        Message response = (new ServiceInvoker("BPM_orchestration4_Starter_Service", "Get_Service_Vars_Sync")).deliverSync(esbMessage, 10000);

        Customer customer = (Customer) response.getBody().get("customer");
        System.out.println("'customer' variable as queried from jBPM process: " + customer);
    }
View Full Code Here


  public Message process(Message message) throws ActionProcessingException {

        Map javaResultMap = (Map) message.getBody().get();
        OrderHeader order = (OrderHeader) javaResultMap.get("orderHeader");
    Customer customer = (Customer) javaResultMap.get("customer");
    //List orderItems = (List) javaResultMap.get("orderItemList");

    customer.setStatus(status);

    logger.info("--------------------------------");
    logger.info("Customer: " + customer);
    logger.info("Order: " + order);
    logger.info("businessKey: " + order.getOrderId());
    logger.info("--------------------------------");

        message.getBody().add("orderHeader", order);
        message.getBody().add("customer", customer);

    message.getBody().add("order_orderId", order.getOrderId());
    message.getBody().add("order_orderPriority", order.getOrderPriority());
    message.getBody().add("order_totalAmount", order.getTotalAmount());
    message.getBody().add("order_discount", order.getOrderDiscount());
    message.getBody().add("businessKey", order.getOrderId());

    message.getBody().add("customer_firstName", customer.getFirstName());
    message.getBody().add("customer_lastName", customer.getLastName());
    message.getBody().add("customer_status", customer.getStatus());

    logger.info("Moved the transformed Order Header and Customer");

    return message;
  }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.store.Customer

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.