[jboss-jira] [JBoss JIRA] Created: (JBRULES-1604) Reactivate only the rules that have the changed fields mentioned in LHS

Suparerk Viriyakorkitkul (JIRA) jira-events at lists.jboss.org
Thu May 15 05:04:22 EDT 2008


Reactivate only the rules that have the changed fields mentioned in LHS
-----------------------------------------------------------------------

                 Key: JBRULES-1604
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1604
             Project: JBoss Drools
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
            Reporter: Suparerk Viriyakorkitkul
         Assigned To: Mark Proctor


When object is updated, the engine now will reselect the rules that mention to this object to the agenda. 
Can it has feature to select only the rules that never been activated and the rules that have the changed fields mentioned in LHS?

For example, 

rule A
when
    M(x =='1' || x=='2')
then
    do something

rule B
when
    M(y=='1')
then
   do something

rule C
when 
    m:M()
then
    m.setX('2');
    update(M);

At first, M.x and M.y are '1', if the rules were fired in A, B, C order, for now, the rules selected in the second round would be A, B and C.
Because only x changed, could it has a feature to make rule engine select only A?

-- 
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