lburgazzoli opened a new pull request #84: Support full yaml dsl #80
URL: https://github.com/apache/camel-k-runtime/pull/84
 
 
   Fixes #80 
   
   This is the first iteration for an YAMLesque DSL so that you can define 
routes as:
   
   ```yaml
   - from:
       uri: "direct:start"
       steps:
        - choice:
            when:
              - simple: "${body.contains(\",\")}"
                steps:
                  - to: "log:when-comma"
                  - split:
                      tokenize: ","
                      steps:
                       - to: "log:when-semicolon"
              - simple: "${body.startsWith(\";\")}"
                steps:
                  - to: "log:when-semicolon"
                  - split:
                      tokenize: ";"
                      steps:
                       - to: "log:when-semicolon"
            otherwise:
              steps:
                - to: "log:otherwise"
        - to: "log:info"
   
   - rest:
       verb: "post"
       uri: "/route"
       steps:
        - unmarshal:
            json:
                library: "Jackson"
                unmarshal-type: "my.Pojo"
        - to: "log:info"
   ```
   
   The DSL can be extended by providing a "service" like file, see as example 
the custom step handler for knative here in the pr.
   
   What's left:
   
   - better documentation
   - support for additional EIPs
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to