[
http://jira.jboss.com/jira/browse/JBRULES-232?page=comments#action_12347661 ]
John Cocktolstoy commented on JBRULES-232:
------------------------------------------
Hi,
I am constructing rules directly using API instead of DRL files. Actually I am using
feature described here - I am binding many columns to the same variable and it works fine.
Hence it is *very likely* that it may be done enirely in the parser.
regards
John C.
if variable is bound to multiple columns, that should mean an
implicit join on identity
---------------------------------------------------------------------------------------
Key: JBRULES-232
URL:
http://jira.jboss.com/jira/browse/JBRULES-232
Project: JBoss Rules
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 3.0-rc2
Reporter: Michael Neale
Assigned To: Mark Proctor
Fix For: 3.1-m3
This is based on some discussions on the mailling list.
So:
m : Message(foo == "bar")
m : Message(foo != "42")
should be the same as
m : Message(foo == "bar", foo != 42)
this works as the same variable is "bound" each time. At the moment it
rebinds.
The "new" behaviour should be consistent with Jess, and it does indeed make
things simpler from a users point of view, and DSLs much more powerful.
Obviously if nothing it bound, then it is just as normal.
It *may* be possible to do this entirely in the parser, not sure at this stage... further
investigation required.
--
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