Class YamlDslConfiguration
- java.lang.Object
-
- org.apache.camel.quarkus.dsl.yaml.YamlDslConfiguration
-
@ConfigRoot(name="camel.yaml", phase=BUILD_TIME) public class YamlDslConfiguration extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanflowModeIftruethe YAML DSL support flow-mode which allow to write more concise routes as for EIPs that have their own output like filter, aggregate, split, etc. thestepselement can be omitted an in that case, the next processing step is automatically wired to the EIP's outputs.
-
Constructor Summary
Constructors Constructor Description YamlDslConfiguration()
-
-
-
Field Detail
-
flowMode
@ConfigItem(defaultValue="true") public boolean flowMode
Iftruethe YAML DSL support flow-mode which allow to write more concise routes as for EIPs that have their own output like filter, aggregate, split, etc. thestepselement can be omitted an in that case, the next processing step is automatically wired to the EIP's outputs. As example, a YAML DSL to process only the timer events from 5 to 10 would look like:
With the flow mode enabled the same logic can be expressed in a more concise way:- from: uri: "timer:tick" steps: - filter: simple: "${exchangeProperty.CamelTimerCounter} range '5..10'" steps: - to: "direct:filtered"- from: uri: "kamelet:source" steps: - filter: simple: "${exchangeProperty.CamelTimerCounter} range '5..10'" - to: "kamelet:sink"
-
-