Hi all,
I am new to drools and evaluating a switch from JRules/ODM to it. For the following situation I was not able to find a solution yet: We need to have multiple values on the rhs of a rule. Example for that:
POJO for LHS
public class Company {
private int id;
// getters, setters, ...
}
POJO for RHS
public class SelectionCriteria {
List<Manufacturer> allowedManufacturer;
//getters, setters, ...
}
now a business user should be able to design a rule that company 1 is allowed to use manufacturer X,Y,Z while company 2 can only continue with manufacturer D.
For a hard coded rule this could work like that:
sc:SelectionCriteria;
when c:Company(id == "1")
then sc.setAllowedManufacturer.addAll(java.util.Arrays.asList("X","Y","Z"));
But I cannot hand over this way to the business department.
My question now is: Is there any DSL that covers specifying lists for the rhs? Or even better: Can I use this somewho in a guided decision table in the workbench? XLS decision tables are unfortunately not an option for us.
Or did I misunderstood something completely?
Thanks in advance for any hint.
Florian