[jboss-jira] [JBoss JIRA] Closed: (JBRULES-520) How to refer one rule in another

Mark Proctor (JIRA) jira-events at lists.jboss.org
Wed May 30 23:30:08 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-520?page=all ]

Mark Proctor closed JBRULES-520.
--------------------------------

    Resolution: Won't Fix

You cannot refer to to other rules, you have to replicate the logic. For further questions on how to do this please use the mailing lists.

> How to refer one rule in another
> --------------------------------
>
>                 Key: JBRULES-520
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-520
>             Project: JBoss Rules
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.0.4
>         Environment: WSAD
>            Reporter: Sridhar Ramaswamy
>         Assigned To: Mark Proctor
>
> I have the following three rules created in a drl:
> rule "Sales"
>     when
>         abc: abcData( $abcName : abcName,
>                                    $value: value > 20)
> 	then
>         abc.setFlagColor("RED");
> end    
> rule "Count"
>     when
>         bcd: bcdData( $bcdName : bcdName,
>                                    $count: count < 120)
> 	then
>         abc.setFlagColor("RED");
> end    
> How to create a new rule which will use these rules, for instance
> rule "sales & count"
>      when 
>        either rule "sales" is true or "count" is true
>                  and 
>        aaa: aaaData($aaaName: aaaName, $amount: amount < 1000)
>     then
>            aaa.setFlag("Critical");
> end
> I am not able to call a rule into another rule to check that is also true.
> Thanks/Sri. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list