[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1065) Unable to return Declaration for identifier
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Wed Aug 8 23:05:49 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1065?page=comments#action_12371565 ]
Mark Proctor commented on JBRULES-1065:
---------------------------------------
It should work we have the following unit test, which passes:
rule "test auto bindings 1"
when
$p : Person();
$c : Cheese( type == $p.likes, price == $c.price )
then
results.add( $p );
end
If you are sure this is a bug, you'll need to upload a self contained example that shows this regression.
> Unable to return Declaration for identifier
> -------------------------------------------
>
> Key: JBRULES-1065
> URL: http://jira.jboss.com/jira/browse/JBRULES-1065
> Project: JBoss Rules
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Drl Parser/Builder
> Affects Versions: 4.0.0.GA
> Environment: Windows XP, Java 1.6
> Reporter: Tong Lee
> Assigned To: Mark Proctor
>
> I've read in the 4.0 features list where implicit binding for value expressions will be available in the 4.0 release. I've downloaded 4.0GA and still getting the compiler error. We have a need for the following and wondering if I'm misunderstanding the functionality:
> Fact/bean object code:
> public class Record {
> private String abc;
> private String xyz;
> public String getAbc()...
> public String getXyz()...
> ...
> }
> DRL code:
> rule "..."
> when
> $record : Record ( abc == xyz)
> then
> ....
> end
> The PackageBuilder can not resolve the "xyz"
> I understand we can define the Record alias and then reference xyz using the alias (see example below) but it would be asking too much for our business users.
> rule "..."
> when
> r: Record ( )
> $record : Record ( abc == r.xyz)
> then
> ....
> end
> Any feedback with this is greatly appreciated!!!
--
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