[ https://issues.apache.org/jira/browse/CAMEL-19698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750446#comment-17750446 ]
Claus Ibsen commented on CAMEL-19698: ------------------------------------- expression is needed when you have options to configure etc. the one-line simple is when its just have the exp value (no options). languages like jsonpath have several options. So in reality then expression with nested simple is the correct syntax. > 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 > Priority: Major > > 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)