[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1701) add unique directive for drl
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Wed Jul 30 22:47:26 EDT 2008
[ https://jira.jboss.org/jira/browse/JBRULES-1701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12423133#action_12423133 ]
Mark Proctor commented on JBRULES-1701:
---------------------------------------
I'm not too keen on increasing the parser/build complexity for what is sugar.
eval( unique( A, B,C, D ) )
that seems adequatate to me instead of :
unique( A, B,C, D )
Which we would expand to:
eval( unique( A, B,C, D ) )
Btw you know there is the remove identity equals option that will disallow any match where a fact is matched more than once? See RuleBaseConfiguration
Mark
> add unique directive for drl
> ----------------------------
>
> Key: JBRULES-1701
> URL: https://jira.jboss.org/jira/browse/JBRULES-1701
> Project: JBoss Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Drl Parser/Builder
> Reporter: zhou yanming
> Assignee: Mark Proctor
>
> when
> Number(A:value);
> Number(B:value);
> Number(C:value);
> Number(D:value);
> unique(A,B,C,D);
> equals to
> when
> Number(A:value);
> Number(B:value);
> Number(C:value);
> Number(D:value);
> eval(A!=B and A!=C and A!=D and B!=C and B!=D and C!=D );
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list