I have a questionnaire in my application in Grails. The questionnaire is dynamic in the sense that the admin can add/edit/delete questions and assign answers/choices to a question.
Now i have a requirement to create rules for the answers given.
Q-1. When did you last donate blood?
A1. Not in a year
A2. Before 6 months
A3. In Last 3 months
An example of a rule would be that if the answer A3 was chosen for the question Q-1, then mark the donor as "Ineligible" for donation.
I would request suggestions/advice as to the best way to implement this.
I haven't used Drools in a Grails project yet, but rather just in a regular Java project though. It looks like there is a plugin for it (http://grails.org/plugin/drools), but it hasn't been updated in awhile.
I have not used Drools before.
Wondering if it can cater to the dynamic nature of my requirement.
Meaning when the admin adds a question and related answers to the questionnaire, he should be able to specify a rule for that question.