[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-500) Special connective "or" constraint

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Sat May 19 17:32:52 EDT 2007


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

Edson Tirelli resolved JBRULES-500.
-----------------------------------

    Resolution: Done

Support added.

Now it is possible to create expressions like:

Person( ( age ( > 20 && < 30) || (>40 && <50) && location=="atlanta" ) || 
               ( age > 20 && location=="Seatle" ) || 
               location == "Chicago" )

The above example uses literal constraints for all values, but they can be any valid constraint: literal, variable, return value, enumerations or predicates.

I did NOT added support into CLIPS, XML and BRMS though.


> Special connective "or" constraint
> ----------------------------------
>
>                 Key: JBRULES-500
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-500
>             Project: JBoss Rules
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Reteoo, Rule Assemply/SPI
>            Reporter: Michael Neale
>         Assigned To: Edson Tirelli
>             Fix For:  4.0.0.MR3
>
>
> Would be nice to have some construct like
> Person(address == null or age < 30)
> which would kind of short circuit (ideally). Could be done as a special thing with alpha nodes, or another type of join node, or something else. 
> This is a common problem to have for users.

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