[jboss-jira] [JBoss JIRA] Created: (JBRULES-520) How to refer one rule in another
Sridhar Ramaswamy (JIRA)
jira-events at jboss.com
Wed Oct 11 15:37:41 EDT 2006
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