[
http://jira.jboss.com/jira/browse/JBRULES-850?page=comments#action_12362943 ]
Michael Neale commented on JBRULES-850:
---------------------------------------
yes, I think this is reasonable.
Couple of solutions, but we may slightly rework the final model before CR of BRMS. There
is lots of new expressive stuff, perhaps we don't have to bind to variables so much
any more.
But at the very least, if there is no constraint binding can be allowed (should only take
a few minutes to correct).
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