[
http://jira.jboss.com/jira/browse/JBRULES-585?page=comments#action_12361084 ]
Michael Neale commented on JBRULES-585:
---------------------------------------
I believe this can be done now as :
...
p: Person( customerId == (c.id) )
at least in trunk. In 3.0.6 it would be: p: Person(customerId = (c.getId()) )
syntax sugar for binding to a field on a bound fact
---------------------------------------------------
Key: JBRULES-585
URL:
http://jira.jboss.com/jira/browse/JBRULES-585
Project: JBoss Rules
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 3.0.5
Reporter: Michael Neale
Assigned To: Mark Proctor
Fix For: 3.1-m3
Original Estimate: 1 day
Remaining Estimate: 1 day
For example:
c: Customer($id: id)
p: Person(customerId == $id.....)
could become:
c: Customer()
p: Person(customerId == c.id)
much more OO looking. Can use an extractor (if possible).
--
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