Tomohisa Igarashi created CAMEL-19698:
-----------------------------------------

             Summary: camel-yaml-dsl: Express "simple" and "expression.simple" 
are mutually exclusive if possible 
                 Key: CAMEL-19698
                 URL: https://issues.apache.org/jira/browse/CAMEL-19698
             Project: Camel
          Issue Type: Task
          Components: camel-yaml-dsl
            Reporter: Tomohisa Igarashi
            Assignee: Luca Burgazzoli


For example currently YAML DSL allows specifying both "simple" and "expression" 
under "when"
{code:yaml}
- from:
    uri: "timer:test"
    parameters:
      period: 3000
    steps:
    - when:
        simple: ${header.baz} != null
        expression:
          simple: ${header.baz} == null
        steps:
          - log: "test"
{code}

But at runtime only latter wins in this case. It would be nice if this 
exclusiveness could be expressed in the schema.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to