[
http://jira.jboss.com/jira/browse/JBRULES-850?page=all ]
Michael Neale reassigned JBRULES-850:
-------------------------------------
Assignee: Michael Neale (was: Mark Proctor)
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
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