[jboss-jira] [JBoss JIRA] Created: (JBRULES-850) Cannot bind variable to unconstrained field

Michael Anstis (JIRA) jira-events at lists.jboss.org
Mon May 14 10:09:52 EDT 2007


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: Mark Proctor


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