Hi,
I am working on a online survey project (Database Driven). I have a scenario where I have five questions Q1, Q2, Q3, Q4, and Q5 each question has five options A11, A12, A13, A14, A15 (radio/combo/checkbox).
I have a requirement as below:
To display Q4 i need to check if Q1's answer is A12 and Q2's answer is A21 or Q3's answer is A34 if this is true then i need to display Q4 else i need to display Q5.
I am thinking of having a rule expression in the database as
((Q1:A12 && A2:A21) || (Q3:A34)) ? Q4:Q5 what this means is if Q1's answer is A12 and Q2's answer is A21 or Q3's answer is A34 then the expression should be evaluated and return true or false if it's true then i need to display Q4 else i need to display Q5.
Is there any tool in
java which can parse this expression (with operand preference) ?
Thanks,