This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 5d22c63b751e67bcd356112b799b1cc92a14ed02 Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Mon Feb 6 07:12:16 2023 +0000 Deprecate quarkus.camel.yaml.flow-mode Fixes #4482 --- .../ROOT/pages/reference/extensions/yaml-dsl.adoc | 28 ---------------------- .../quarkus/dsl/yaml/YamlDslConfiguration.java | 1 + 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc index 444adae77e..bb75fda1b7 100644 --- a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc +++ b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc @@ -161,31 +161,3 @@ public class MyClass { } ---- - -[id="extensions-yaml-dsl-additional-camel-quarkus-configuration"] -== Additional Camel Quarkus configuration - -[width="100%",cols="80,5,15",options="header"] -|=== -| Configuration property | Type | Default - - -|icon:lock[title=Fixed at build time] [[quarkus.camel.yaml.flow-mode]]`link:#quarkus.camel.yaml.flow-mode[quarkus.camel.yaml.flow-mode]` - -If `true` the YAML DSL supports flow-mode. This allows you to write more concise routes for EIPs that have their own output like filter, aggregate, split, etc. the `steps` element can be omitted and in that case, the next processing step is automatically wired to the EIPs outputs. -For example, a YAML route to process only the timer events from 5 to 10 would look like: `- from: - uri: "timer:tick" - steps: - - filter: - simple: "$++{++exchangeProperty.CamelTimerCounter` range '5..10'" steps: - to: "direct:filtered" ++}++ With the flow mode enabled the same logic can be expressed in a more concise way: `- from: - uri: "kamelet:source" - steps: - - filter: - simple: "$++{++exchangeProperty.CamelTimerCounter` range '5..10'" - to: "kamelet:sink" ++}++ -| `boolean` -| `true` -|=== - -[.configuration-legend] -{doc-link-icon-lock}[title=Fixed at build time] Configuration property fixed at build time. All other configuration properties are overridable at runtime. - diff --git a/extensions-core/yaml-dsl/runtime/src/main/java/org/apache/camel/quarkus/dsl/yaml/YamlDslConfiguration.java b/extensions-core/yaml-dsl/runtime/src/main/java/org/apache/camel/quarkus/dsl/yaml/YamlDslConfiguration.java index ad7181959c..33d675cfd4 100644 --- a/extensions-core/yaml-dsl/runtime/src/main/java/org/apache/camel/quarkus/dsl/yaml/YamlDslConfiguration.java +++ b/extensions-core/yaml-dsl/runtime/src/main/java/org/apache/camel/quarkus/dsl/yaml/YamlDslConfiguration.java @@ -57,6 +57,7 @@ public class YamlDslConfiguration { * * */ + @Deprecated(forRemoval = true) @ConfigItem(defaultValue = "true") public boolean flowMode; }