[
https://jira.jboss.org/jira/browse/JBRULES-1701?page=com.atlassian.jira.p...
]
Mark Proctor commented on JBRULES-1701:
---------------------------------------
Nice idea, I think a better way to support this more generically is via functions and
varargs though. Not sure if Drools willl support varargs at the moment, give it a ago. I
think the function defintions defintely don't, at the moment, but you can do the
functions in java land as static methods and import them.
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