Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-2042

In Guided Editor when using DSL configuration, with "-" it adds condition to first Fact statement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 5.5.0.Final
    • DSLs Editor
    • None

      I have a something like following in DSL

      [when] There is an employee

      {employee} in Delhi = Employee(key == "{employee}

      ")
      Address( zip == "110018")
      [when] - address area is neat and clean = neat == true

      I created a business rule and added DSL using editor, the view source shows following snippet:
      when
      Employee(key == "Deep" , neat == true)
      Address( zip == "110018")
      then
      end

      it is adding sub-condition , neat == true, to the wrong statement. In guvnor 5.2 this is done on last statement in the given rule.
      So it should have been:

      when
      Employee(key == "Deep")
      Address( zip == "110018" , neat == true)
      then
      end

      I think it should find the last ) in the statements and put sub-condition there.

            docmrc97 Mark Coble (Inactive)
            deepesh.nandal Deepesh Nandal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: