THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
For example you could use the python function to create an Predicate in a Message Filter or as an Expression for a Recipient List
In the sample below we use Python to create a Predicate use in the route path, to route exchanges from admin users to a special queue.
Code Block | ||||
---|---|---|---|---|
| ||||
from("direct:start")
.choice()
.when().python("request.headers['user'] == 'admin'").to("seda:adminQueue")
.otherwise()
.to("seda:regularQueue");
|