[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1186) Adding 'OR' constraints to fact's properties in DSL
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Wed Sep 12 21:28:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1186?page=all ]
Mark Proctor updated JBRULES-1186:
----------------------------------
Fix Version/s: FUTURE
This isn't possible now, so marking it as a FUTURE. What you can do though is have 3 templates. One for < something one for > and one for between - where the between template does what you want.
age is between {$minage} and {$maxage} : age >= ${minage} && <= {$maxage}
> Adding 'OR' constraints to fact's properties in DSL
> ---------------------------------------------------
>
> Key: JBRULES-1186
> URL: http://jira.jboss.com/jira/browse/JBRULES-1186
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Drl Parser/Builder
> Affects Versions: 4.0.1
> Environment: All OS platform
> Reporter: Andy Mei
> Assigned To: Mark Proctor
> Priority: Critical
> Fix For: FUTURE
>
>
> I would like to write something like this :
> There is a Cheese with
> ( - age is less than 42
> or
> - age is more than 60 )
> - type is 'stilton'
> Unfortunately, It's the drools parser which manage "-" char.
> Also this previous synthax don't work in the LHS.
> Anyone could help me to do an equivalent condition in my DSL ? If possible with "-" sugar char.
--
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