Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19111

Yaml DSL does not seem to work with split/xtokenize

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      This scenario works with XML DSL

      Here is XML DSL

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- camel-k: language=xml --><routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns="http://camel.apache.org/schema/spring"
              xsi:schemaLocation="
                  http://camel.apache.org/schema/spring
                  https://camel.apache.org/schema/spring/camel-spring.xsd">    <!-- Write your routes here, for example: -->
          
          <route>
              <from uri="file:///c://work//batchsplit//in"/>
              <split streaming="true">
                  <xtokenize mode="w">//BatchMaster</xtokenize>
                  <to uri="file:///c://work//batchsplit//out?fileName=${exchangeId}.xml"/>
              </split>
          </route></routes>
       

      Here is Yaml version that I tried:

      - route: 
          id: route-a6b4
          from: 
            uri: file:/work/batchsplit/in
            id: from-d1ca
            steps: 
              - split: 
                  id: split-6d45
                  expression: //Batchmaster
                  xtokenize: 
                      id: xtokenize-460a
                      mode: w
                  streaming: true
                  steps: 
                    - to: 
                        uri: file:/work/batchsplit/out?fileName=${exchangeId}.xml
                        id: to-1a10
      

      I have tried to run this thru camel-jbang.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            chirag884 Chirag Sanghavi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: