camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton <>
Subject XML Support for BinaryPredicate
Date Mon, 05 Nov 2012 11:43:23 GMT
Hi All,
Could anybody tells me - does support for BinaryPredicate exists for routes
to XML marshaling?
Actually I’m trying to save RouteDefinition (here is toString value):
Route[[From[timer://foo?fixedRate=true&period=1000]] ->
[Choice[[When[{property{CamelTimerCounter} <= 3} ->
When[simple{${property.CamelTimerCounter} range '4..6'} ->
[Choice[[When[simple{${property.CamelTimerCounter} regex '.*[02468]$'} ->
to XML:
final JAXBContext jaxb =
        final Marshaller marshaller = jaxb.createMarshaller();
        final RouteDefinition routeDefinition =
        marshaller.marshal(routeDefinition, new File("test-route-" +
routeDefinition.getId() + ".xml"));

But get an empty expressionDefinition element for the one that should hold
object for “[{property{CamelTimerCounter} <= 3”. In same time Simple and
predicates were well marshaled.
I had took a look on
org.apache.camel.model.ExpressionNodeHelper#toExpressionDefinition and see
no support for BinaryPredicates. Do I missing something or it is true and
this is no marshaling provided yet for such objects?

I will appreciate your guys for any clarification :)

View this message in context:
Sent from the Camel Development mailing list archive at

View raw message