I'm using JEXL to evalute a String as below:
'GroupName'.'ProductName'.'item'.'fields'.'duration'
where GroupName and ProductName are String variables while the rest are fixed strings.
I built a context as: Map<String, Map<String, CustomClass>>
which ends up like below:
GroupName >> ProductName >> CustomClass
Before I evaluate the expression I do replace all single quotes by empty character.
Issue: The evaluation is not working when ProductName contains a dot itself.
Question: Is there any way I can tell JEXL engine to use a custom character rather than the dot as separator to evaluate the expression?
Update: in the oracle documentation about velocity it states: Do not use the '.' character in property names. If I understood correct JEXL use Velocity for parsing the expression, does it means there is no way to overcome the issue above?
Regards, Vincenzo