Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7605C200C01 for ; Thu, 19 Jan 2017 12:43:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 749CD160B54; Thu, 19 Jan 2017 11:43:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BE698160B42 for ; Thu, 19 Jan 2017 12:43:54 +0100 (CET) Received: (qmail 75214 invoked by uid 500); 19 Jan 2017 11:43:53 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 75199 invoked by uid 99); 19 Jan 2017 11:43:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2017 11:43:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3AB97C036F for ; Thu, 19 Jan 2017 11:43:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.711 X-Spam-Level: * X-Spam-Status: No, score=1.711 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rtO-A3JZ-R5l for ; Thu, 19 Jan 2017 11:43:49 +0000 (UTC) Received: from mail-yb0-f175.google.com (mail-yb0-f175.google.com [209.85.213.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 83F3E5F3BC for ; Thu, 19 Jan 2017 11:43:49 +0000 (UTC) Received: by mail-yb0-f175.google.com with SMTP id 123so14301349ybe.3 for ; Thu, 19 Jan 2017 03:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PzxeAds+qMzGqcf7I9IBXKWhk5lj2XOlC4ofpmjUDXE=; b=rWcdhckdWal6I2lQmIljGWvs5nBWOQAaKcZNWgKXAQpOhqpjxhKkQnriv7rFvETcan eyEJhiNFnxwXB4vSsoCaecubOKaKXvfXNrxCMk11iXQuI5EQuQKrpsPXtocAyq5YSxBO icxQNDxbujMRQLg10xX+fEdyy3NkUEFqJIGrrKCgdSnyCdzwahWlyreKbIcnkapwVfui MH0FQ1yc61Lt2vAAf72PrN0+pK/8Y2DsLsFx7gf0MXCbiN5CquRxH8NJTinQVUgmDIyt qSgflcHh9iJMcnATpKcS6LPNtWg7q9PrnFZY0FMhr32Yw2EjqpKH2P+gxF3gjvVWpOrs MJTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=PzxeAds+qMzGqcf7I9IBXKWhk5lj2XOlC4ofpmjUDXE=; b=jWGFtsaAc7y/8941vrrRqtODbhjn+NdVcZqvhg+D8F0/aOzE5dxOEKg+ykNDaVuLeu deeqrED9qGC6Ks/5MkvadM/2U1a3MmEeEgMYovKLgWrE/fBF3gY8tzNXTrAwLnsVemn9 Eij0cdIpxJFzjHw0j2XYW68jMVC16YQTlmvHLRggpFCewrlNvt1uae6Yq9OiMXMyru63 eqsud6xQ9zKjQ0YNddICOxIpBGGlbdH9dEtF+OJYxd1Dl11yf/gPnNyq3Vwkg03kHrc5 UwPNGAo8Xg8d8hMYm7uyW2HmmmgqkWGXQvlol9UEX4u0U9/ncaEi14rv8pj/T6Fj15nY SV5g== X-Gm-Message-State: AIkVDXJ7sNkdb74TJM94qczyflYjzogB2JcDLFAx7yE9bqIGQUQdIDXgI0G3eYRpHvEa0JmymPPVaWVeY6g9Sw== X-Received: by 10.237.50.101 with SMTP id y92mr7845745qtd.179.1484826222861; Thu, 19 Jan 2017 03:43:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.56.164 with HTTP; Thu, 19 Jan 2017 03:43:22 -0800 (PST) In-Reply-To: <1484825964562-5792799.post@n5.nabble.com> References: <1484822966875-5792774.post@n5.nabble.com> <1484825964562-5792799.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 19 Jan 2017 12:43:22 +0100 Message-ID: Subject: Re: How to read header of type java Map in choice block To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 19 Jan 2017 11:43:55 -0000 Something a like: when(simple("${header[isoMap].getY()} == '213000'")) On Thu, Jan 19, 2017 at 12:39 PM, santoshkeleti wrote: > Thanks bro, > > just i have tried simple but did not worked for me, may be i did some thing > wrong. > i am new to camel. > > from("file:/home/santoshkeleti/Desktop/Camel/input?noop=true") > .to("http://"+conncterURL+"iso/parse?isoMsg="+iso).process(new > Processor() { > @Override > public void process(Exchange exchange) throws Exception { > map=exchange.getIn().getBody(String.class); > exchange.getIn().setHeader("map", map); > exchange.getIn().setHeader("isoMap", new > GsonBuilder().create().fromJson(map, Map.class)); > } > }).choice() > > .when(PredicateBuilder.constant(simple("${in.header.isoMap[\"3\"]").equals("213000"))) > > .toD("http://localhost:8080/CBS-Connector-0.0.1-SNAPSHOT/service/iso/fundTransferISO?isoMsgMap=${header.map}&"+"suspenseAccount="+suspenseAccount) > > > help me. i have a assignment to complete. i am just following camel in > Action book. but i dont have time read complete book that y i am asking > help. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-read-header-of-type-java-Map-in-choice-block-tp5792774p5792799.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2