I would say to have a Map<String, KBase> where the keys are "AndroGel", "Another Thing", etc and the value is the kbase containing only the rules that apply to that particular product.
This is what I want
If the Generic Name is AndroGel, then focus on firing AndroGel rules only,
non other. If it is not AndroGel, it should check for other Generic Name and
if it matched it should only focus on firing that rules only.
rule "AndroGel Generic Name"
no-loop true
auto-focus true
salience 100
when
eval( droolsRequest.drug.genericName == "AndroGel" )
then
drools.getWorkingMemory().setFocus("AndroGel");
end
Thanks.
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-fire-rules-of-a-specific-rule-file-from-ChangeSet-tp4019282p4019314.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users