[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-850) Cannot bind variable to unconstrained field
Michael Neale (JIRA)
jira-events at lists.jboss.org
Tue May 22 23:54:52 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-850?page=all ]
Michael Neale resolved JBRULES-850.
-----------------------------------
Fix Version/s: 4.0.0.MR3
Resolution: Done
Done like a dinner, was a good idea, very easy to do actually.
> Cannot bind variable to unconstrained field
> -------------------------------------------
>
> Key: JBRULES-850
> URL: http://jira.jboss.com/jira/browse/JBRULES-850
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-brms
> Reporter: Michael Anstis
> Assigned To: Michael Neale
> Fix For: 4.0.0.MR3
>
>
> Sometimes it is necessary to bind variables to fields in the LHS without constraining them. The binding then being used elsewhere perhaps in the RHS within an expression. The BRMS does not allow for this - fields must be constrained. Perhaps simply adding an extra option in the operator drop-down ("is equal to", "is not equal to") for "any" is the quickest workaround?
> Requirement
> rule "rule"
> when
> ObjectA( $v : value )
> then
> System.out.println($v * 1.5 + 100);
> end
> Generated DRL
> rule "rule"
> when
> ObjectA( $v : value null null )
> then
> System.out.println($v * 1.5 + 100);
> end
--
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