Hi All,
Using Drools, is there any way to retrieve all the conditions from the business rules document (excel sheet used). To be more specific, please refer to the attachment (The contents are deliberately removed).
As per the attachment, we have several conditions like cond1, cond2, cond3 and actions. As far as i understand drools (have not worked before), based on the condition, action is selected. i.e , if we select cond1, act1 is selected from "action2" column. Now, does drools provides any feature that lists out all the conditions, in some kind of a Set of strings etc.
The way I see this drools is, for a unique key, we get a row from excel. Initially, I was looking for a reverse lookup, i.e for a given action, find out the condition. This does not sound logical and makes sense, as we after all do not get the Key from value. So, then I'm thinking if there is any way, drools returns the list of all the conditions.
something, like Set<
String> getConditions()
Is this possible at all ? if yes, can some body throw me some light.