Open davsclaus opened 3 weeks ago
The simple.json
is part of the camel-catalog
JAR.
Kaoto can maybe in the future make some code assistance for this, so when you edit in the form, and use have selected simple as language, and then have some kind of code assistance popup, or type completion assistance, so if you type ${CURSOR_HERE
and then it can list all the functions. And if you type ${bCURSOR_HERE
then it list all functions starting with b
... and so on.
The simple language is used a lot in Camel so having some better tolling assistance would be great.
Great addition!
Please describe the feature that you want to propose
https://issues.apache.org/jira/browse/CAMEL-20569
In simple.json there is a new functions that list all the functions you can do on simple. Here is a snippet for the prettyBody function
One more aspect is that some functions allow to do "OGNL" ala groovy, where you use DOT method DOT method to call sub methods. If the function allows this then
ognl: true
would be in the json file.For example the body function allows this so you can do
Also notice I added prefix and suffix in the json so you know that the function requires to have this - ie ${body} vs body