Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
npruss
Contributor
Contributor

Syntax for cMessageRouter 'when' clause with 'header' type

Hi,
I am new to this forum.
My question is:
How is the syntax for accessing header information in a 'when' clause of the cMessageRouter?
See the figure for illustration.
Thank you in advance
Norbert
Labels (1)
  • Other

4 Replies
Anonymous
Not applicable

Hello Norbert,
Can't find the figure unfortunately, but you may chose from many available methods, for example XPath would work like that:
http://screencast.com/t/kQHfz0gSUdPf
Exported route you may find here:
http://dl.dropbox.com/u/218306/ContentBasedRoutingRoute.zip
It will be released as part of ESB Demo scenarios in the Talend Open Studio for ESB 5.0.1
Renat
npruss
Contributor
Contributor
Author

Hello Renat,
thanks for the answer. The image is visible now. How can I solve the problem with the 'header' type?
Norbert
_AnonymousUser
Specialist III
Specialist III

Hi All:
a way to user header expression on When Clause is specifing the type as "simple".
Assuming you want to check the header value of "foo" equals "hello" or not, then you can:
1.specify the expression "type" as "simple"
2.in the text area, write the expression as "${in.header.foo} == 'hello'"
That's all
To be honest, the expression of When Clause is not that intuitive, we may improve this part in future.
Anonymous
Not applicable

Hello,
I have a problem to filter JMSType from activeMQ in my route.
I use  2.in the text area, write the expression as "${in.header.foo} == 'hello'" 
But i don't have result
How can i filter type message (there is a header type), how can i use it ?
thanks