<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use a cMessageFilter to filter by designated header values in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224189#M17002</link>
    <description>You may also want to take a look at the cMessageRouter. you mention in your original email that you are looking for something similar to the choice() DSL command. The choice Java DSL is used to implement the Content Based Router EIP, see 
&lt;A href="http://camel.apache.org/content-based-router.html" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/content-based-router.html&lt;/A&gt; which is represented by the cMessageRouter in the tool palette. This will allow you to address multiple cases systematically much like an if-then-elseif clause. Note that when setting filter criteria using the cMessageRouter the condition is set on the line connecting the cMessageRouter to the different output paths.</description>
    <pubDate>Tue, 10 Jul 2012 10:59:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-10T10:59:35Z</dc:date>
    <item>
      <title>How to use a cMessageFilter to filter by designated header values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224186#M16999</link>
      <description>&lt;P&gt;Dear all. &lt;BR /&gt;I nearly tried the last three days to get the cMessageFilter component working in TESB Studio 5.1.1.&lt;BR /&gt;What I' d like to achieve is to build a route that routes the incoming message according to a value set within a special header. (e.g.: if (header value at key "type" is equals to "bla" then route message to jobA, otherwise to jobB)&lt;BR /&gt;As I stumbled over the documentation, all I found is to manually set the java code by using the choice element (see the following example)&lt;BR /&gt;...&lt;BR /&gt;.choice()&lt;BR /&gt;.when(header("type").isEqualTo("widget")).to("bean:widgetOrder")&lt;BR /&gt;.end(); &lt;BR /&gt;..&lt;BR /&gt;But the TESB Studio doesnt let me set any of this code fragments.&lt;BR /&gt;It generates somtehing like this&lt;BR /&gt;...&lt;BR /&gt;.filter().header("isIVR")&lt;BR /&gt;...&lt;BR /&gt;As for I am using the TESB Studio, I wondered if it is possible to simply build this routing by "clicking your route" with the cMessageFilter component of TESB Studio 5.1.1.&lt;BR /&gt;But nevertheless I can't specify any further options than what type of routing EL I am using and the value to compare. There's no palce or filed to put more code into (see screen shots).&lt;BR /&gt;Maybe some of you did experience the same problem / behaviour. What's the next step I should take to solve my problem. &lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Kind regards.&lt;BR /&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 12:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224186#M16999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a cMessageFilter to filter by designated header values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224187#M17000</link>
      <description>Hi Sasha, 
&lt;BR /&gt;as a 'when' condition try to use expressions like xpath( "/event/eventType = 'created'") or simple ("${heade.myHeader} = 'xxxx'") , see here: 
&lt;A href="http://camel.apache.org/simple.html" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/simple.html&lt;/A&gt; 
&lt;BR /&gt;Good luck 
&lt;BR /&gt; Gabriel</description>
      <pubDate>Mon, 09 Jul 2012 15:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224187#M17000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-09T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a cMessageFilter to filter by designated header values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224188#M17001</link>
      <description>Hi all.
&lt;BR /&gt;The hint with the simple predicate languages (simple, ognl or mvel) solved my problem.
&lt;BR /&gt;...
&lt;BR /&gt; "${in.headers == 'IVR-Feedback'}"
&lt;BR /&gt;...
&lt;BR /&gt;The above expression filtered all messages where the header subject matches the value "IVR-Feedback".
&lt;BR /&gt;Thanks for your support.
&lt;BR /&gt;Regards
&lt;BR /&gt;Alexander</description>
      <pubDate>Tue, 10 Jul 2012 07:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224188#M17001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-10T07:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a cMessageFilter to filter by designated header values</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224189#M17002</link>
      <description>You may also want to take a look at the cMessageRouter. you mention in your original email that you are looking for something similar to the choice() DSL command. The choice Java DSL is used to implement the Content Based Router EIP, see 
&lt;A href="http://camel.apache.org/content-based-router.html" rel="nofollow noopener noreferrer"&gt;http://camel.apache.org/content-based-router.html&lt;/A&gt; which is represented by the cMessageRouter in the tool palette. This will allow you to address multiple cases systematically much like an if-then-elseif clause. Note that when setting filter criteria using the cMessageRouter the condition is set on the line connecting the cMessageRouter to the different output paths.</description>
      <pubDate>Tue, 10 Jul 2012 10:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-a-cMessageFilter-to-filter-by-designated-header/m-p/2224189#M17002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-10T10:59:35Z</dc:date>
    </item>
  </channel>
</rss>

