-
IF-Condition in a String
Hi there!
i have conditions/rules saved in a database and i have to implement them in my java-code...
such a rule looks like this:
Code:
{1668} AND ({1089} OR {1090} OR {1091} OR {1102} OR {1106} OR {1253} OR {1669} OR {1670} OR {1671} OR {1672} OR {1673} OR {1674} OR {1675} OR {1676} OR {1677} OR {1678} OR {1679} OR {1680})
converting the rule is no problem ... so i can parse it so that it becomes this
Code:
true && (true || false || true || ..........)
now i dont know how i can handle a string-variable containing such a rule...
can you help me?
friendly greetings,
lenaz
-
lenaz,
Looks like a Groovy job to me.
Cheers.