oscerd commented on issue #2203:
URL: https://github.com/apache/camel-k/issues/2203#issuecomment-817875164


   This seems to work
   
   ```
   - from:
       uri: 'timer:azure-storageope'
       parameters:
         period: '{{period}}'
       steps:
         - choice:
             when:
             - simple: "${header[file]}"
               steps:
               - set-header:
                   name: CamelAzureStorageBlobBlobName
                   simple: "${header[file]}"
             - simple: "${header[ce-file]}"
               steps:
               - set-header:
                   name: CamelAzureStorageBlobBlobName
                   simple: "${header[ce-file]}"
             otherwise:
               steps:
               - set-header:
                   name: CamelAzureStorageBlobBlobName
                   simple: "${exchangeId}"
         - to:
             uri: 'azure-storage-blob://xxx/xxx'
             parameters:
               operation: 'listBlobs'
               accessKey: 'xxxxx'
         - to:
             uri: "log:info"
   ```


-- 
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:
[email protected]


Reply via email to