Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.18.2
-
None
-
None
-
Camel version: 3.18.2
JDK: 11 (Temurin)
-
Unknown
Description
I have a rout template like this:
@Override public void configure() throws Exception { CsvDataFormat csv = new CsvDataFormat(); csv.setDelimiter(new Character(',')); csv.setUseMaps(true); routeTemplate("csv-action") .templateParameter("in") .templateParameter("out") .from("{{in}}") .unmarshal(csv) .to("{{out}}"); }
I would like to make the CsvDataFormat parameterized. For example, to set the delimiteter. In this case it's outside the routeTemplate (and when it's in it's not interpolated).
Would be nice to set it like CsvDataFormat options something like this:
@Override public void configure() throws Exception { routeTemplate("csv-action") .templateParameter("in") .templateParameter("out") .templateParameter("delimiter",",") .templateParameter("map","true") .from("{{in}}") .unmarshal().csv().setDelimiter("{{delimiter}}").setUseMaps("map"); .to("{{out}}"); }
Attachments
Issue Links
- is fixed by
-
CAMEL-17505 camel-core - Propose a DSL for data formats
- Resolved
- is related to
-
CAMEL-18604 XpathRouteBuilder in Route Templates
- Resolved