[rules-users] How to fire rules of a specific rule file from ChangeSet

Rana ven12344 at yahoo.com
Tue Aug 21 11:08:26 EDT 2012


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.


More information about the rules-users mailing list