commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Purshotam Shah <>
Subject [jexl]Apache JEXL conditional execution path
Date Mon, 15 Jun 2015 23:12:00 GMT
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

(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?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message