You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2017/01/13 12:10:26 UTC

[jira] [Resolved] (CAMEL-10698) camel-maven - validate simple expression predicate vs expression

     [ https://issues.apache.org/jira/browse/CAMEL-10698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-10698.
---------------------------------
    Resolution: Fixed

> camel-maven - validate simple expression predicate vs expression
> ----------------------------------------------------------------
>
>                 Key: CAMEL-10698
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10698
>             Project: Camel
>          Issue Type: Improvement
>          Components: tooling
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.19.0
>
>
> When we get some details in the model we can find out if its a predicate or expression and use that in the validator to validate that correctly.
> Now it can fail with
> {code}
> [INFO] --- camel-maven-plugin:2.19.0-SNAPSHOT:validate (default-cli) @ camel-example-spring-boot ---
> [INFO] Using Camel version: 2.19.0-SNAPSHOT
> [INFO] Endpoint validation success: (3 = passed, 0 = invalid, 0 = incapable, 0 = unknown components)
> [WARNING] Simple validation error at: org.apache.camel.example.spring.boot.MySpringBootRouter.configure(MySpringBootRouter.java:34)
> 	Unexpected token ! at location 8
> 	${body} !> 50
> 	        *
> [WARNING] Simple validation error: (0 = passed, 1 = invalid)
> {code}
> In a route with
> {code}
>         from("timer:trigger")
>             .filter().simple("${body} !> 50")
>                 .to("log:out");
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)