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
    boolean
    If true the 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. the steps element can be omitted an in that case, the next processing step is automatically wired to the EIP's outputs.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • flowMode

      @ConfigItem(defaultValue="true") public boolean flowMode
      If true the 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. the steps element 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:

       
       - 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"
       
       
  • Constructor Details

    • YamlDslConfiguration

      public YamlDslConfiguration()