You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2019/10/30 23:34:03 UTC

[GitHub] [camel-k] hguerrero edited a comment on issue #1035: can't use a function processor with javascript

hguerrero edited a comment on issue #1035: can't use a function processor with javascript
URL: https://github.com/apache/camel-k/issues/1035#issuecomment-548155790
 
 
   script 
   
   ```c = restConfiguration();
   c.setComponent('undertow');
   c.setPort('8080');
   
   rest('/')
       .post('/notify/order')
       .to('direct:notify');
   
   from('direct:notify')
       .log('Inventory Notified ${body}')
       .process(processInventory)
       .to('log:info');
   
   function processInventory(e) {
       return JSON.stringify({
           inventoryId: '12345'
       })
   }
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services