Moqui学习之 Step by Step OrderProcureToPayBasicFlow

      /** Get a service caller to call a service synchronously. */
        //ServiceCallSync sync();
        /** Map of name, value pairs that make up the context (in parameters) passed to the service. */
       // ServiceCallSync parameters(Map<String, ?> context);
        /** Call the service synchronously and immediately get the result.
         * @return Map containing the result (out parameters) from the service call.
         */
        //Map<String, Object> call() throws ServiceException;
        Map priceMap = ec.service.sync().name("mantle.product.PriceServices.get#ProductPrice")
                .parameters([productId:'DEMO_1_1', priceUomId:priceUomId, quantity:1,
                    vendorPartyId:vendorPartyId, customerPartyId:customerPartyId]).call()

 

posted @ 2016-05-09 15:58  霓裳梦竹  阅读(229)  评论(0编辑  收藏  举报