[jboss-jira] [JBoss JIRA] Created: (JBRULES-2609) Bad condition operator "===" (triple equals) in room fire example

Julien Kronegg (JIRA) jira-events at lists.jboss.org
Tue Aug 3 10:52:49 EDT 2010


Bad condition operator "===" (triple equals) in room fire example
-----------------------------------------------------------------

                 Key: JBRULES-2609
                 URL: https://jira.jboss.org/browse/JBRULES-2609
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-docs-expert
    Affects Versions: 5.1.0.FINAL
         Environment: environment not relevant
            Reporter: Julien Kronegg
            Assignee: Mark Proctor
            Priority: Trivial


Context:
The "Quick Start" chapter/"The Basics" section uses an example of fire in rooms.

Issue:
In one of the rule example snippet, the condition operator used is "===" (triple equals) instead of "==" (double equals): 

  rule "Status output when things are ok"
  when
      not Alarm()
      not Sprinkler( on === true ) 
  then
      System.out.println( "Everything is ok" );
  end

Location:
In version 5.1.0.FINAL and also in trunk/rev34481 in the following file:
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-The_Basics.xml : line 389

Priority:
Since this is in the basics, beginners read that chapter, so the priority could be higher than "trivial"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list