Class YamlDslConfiguration
java.lang.Object
org.apache.camel.quarkus.dsl.yaml.YamlDslConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIftruethe 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 -
Method Summary
-
Field Details
-
flowMode
@ConfigItem(defaultValue="true") public boolean flowModeIftruethe 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"
-
-
Constructor Details
-
YamlDslConfiguration
public YamlDslConfiguration()
-