Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Invalid
-
1.1
-
None
-
Windows, RAD 7.0
Description
I am new to using JEXL and my organization is looking to externalize the list of expression we have. Many of the expressions have a list of values as a reference data. I would like to define these values in a properties file along with the expression. For example:
"List myList = new List['2','3']; if(myList.contains(myValue))
{true}else
{false}";
I am unable to define this syntax (error at definition of List). I could not helpful exception message, while creating the above exception.
The question is, can we define such list in JEXL expression string? what is the syntax? I could not figure out the answer from the java docs, sample code, JUnit tests and google !!!
If not, this case can be a potential candidate for improvement.
Thanks
Vijay