I am using Apache JEXL for condition expression execution.

My expression can be like

(functionA(string[]) || functionB(string[])) &&  (functionC(string[]) ||  
functionD(string[]) )
Each function will return some string. If the function returns empty string, 
then it consider as false.

At the end I need to have concatenated string and also which path has created 
the concatenated string.

(functionA(string[]) && functionB(string[])) ||  (functionC(string[]) &&  
functionD(string[]) )
If functionA = true, functionB = false, functionC = true, functionD = true 
Final output should be of concatenated string from functionC and functionD. It 
should not contain functionA output.

Any suggestion on how to do it?



  

Reply via email to