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

Esteban Aliverti esteban.aliverti at gmail.com
Tue Aug 21 11:14:35 EDT 2012


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.

Best Regards

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com


On Tue, Aug 21, 2012 at 5:08 PM, Rana <ven12344 at yahoo.com> wrote:

> 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120821/f5ee7e9e/attachment-0001.html 


More information about the rules-users mailing list