Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12210

Wrong/No completion for the second field constraint in Drools Rule Editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.CR2-SOA
    • 3.3.0.Beta3-SOA
    • drools
    • None

    Description

      A. Rule Editor doesn't raise a completion list for the second field constraint.

      rule "No completion for second constraint"
      when
      	Person( name != "John", ) 
      then
      	
      end
      

      Click ctrl+space after ',' -> no popup

      B. Rule Editor raises a wrong completion list, which indicates fields of a preceded fact, for the second field constraint.

      rule "wrong completion for second constraint in case it has preceded fact"
      when
      	Cheese( type == "cream" )
      	Person( name != "John", ) 
      then
      	
      end
      

      Click ctrl+space after ',' -> the popup completion list includes Cheese's fields like 'type', not Person's fields.

      In the attached example project, Sample01.drl is for A. Sample02.drl is for B. (please ignore Sample03/04)

      Attachments

        Activity

          People

            kverlaen@redhat.com Kris Verlaenen
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: