Details
-
Enhancement
-
Resolution: Done
-
Major
-
2.1.0-psc-01-00RC1
-
None
-
None
Description
It'd be nice if the routingSlip wasn't restricted to just endpoints, for example what about being able to specify functions like convertBodyTo() or specify a processor, type converter in the header for the routing slip to call on, for example:
from("direct:a") .setHeader("routingSlip", "convertBodyTo:java.lang.String#processor:myProcessor") .routingSlip("routingSlip", "#");
Rather than:
from("direct:a") .setHeader("routingSlip", "direct:convertBodyTo#direct:someProcessor") .routingSlip("routingSlip", "#"); from("direct:convertBodyTo") .convertBodyTo(java.lang.String); from("direct:someBean") .process(new MyProcessor());
this would allow folks to have really dynamic routes if desired without having to potentially create/manage lots of little routes using direct/seda/vm.