I created a JIRA issue for this:
https://issues.apache.org/jira/browse/CAMEL-7582
Tim
--
View this message in context:
http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753387.html
Sent from the Camel - Users mailing list archive at Nabble.com.
> (or the ssh component if the script is on a remote machine):
>
>
>
>
> Regards,
> Scott
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753052.html
> Sent fr
As an alternative to the language component, you can use the exec component
(or the ssh component if the script is on a remote machine):
Regards,
Scott
--
View this message in context:
http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753052
gt; I did find a workaround - set the return value to the request.body property
> > in the Python script, and use the transform=false attribute for the
> > language
> > component URL. But was wondering what the way to get a multi-line script
> > working correctly was.
> >
round - set the return value to the request.body property
> in the Python script, and use the transform=false attribute for the
> language
> component URL. But was wondering what the way to get a multi-line script
> working correctly was.
>
> Tim
>
>
>
> --
> View
/camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753009.html
Sent from the Camel - Users mailing list archive at Nabble.com.
w this message in context:
http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5724114.html
Sent from the Camel - Users mailing list archive at Nabble.com.
.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5724064.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
t; foo()
>
>
> But I still get the same NPE. How do I get the result of the script to be
> passed along?
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp
ot; to be passed along to dataProvider.
>
> Instead, I am getting a NPE because the return value from the Python script
> is in fact not being passed as a message.
>
> Any insight into how to accomplish this is appreciated.
>
> Thanks.
>
>
>
> --
> View
10 matches
Mail list logo