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

Guided Editor: Nested DSL UI Suggestion

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • DSLs Editor
    • None

      When there is a large set of DSL, with nested statements, the UI for Rules creation becomes cluttered. I propose that we change the simple List to a expandable table structure for Fact Assertion.

      For Example,
      [when]There is a Patient with Cholesterol Readings=$c : Cholesterol()
      [when]-With the Gender

      {gender}=patient.gender=="{gender}

      "
      [when]-With Age Between

      {lower:[0-9]+} and {upper}=patient.age <= {lower}

      , patient.age >=

      {upper}
      [when]-With Cholesterol of {cholesterol} mg/dl or above=mgdl >={cholesterol}
      [when]-With Cholesterol of {cholesterol} mg/dl or below=mgdl <={cholesterol}
      [when]-With Cholesterol between {lower} mg/dl and {upper}

      mg/dl=mgdl >=

      {lower}

      , mgdl<=

      {upper}

      This leads to fact entry such as the screenshot attached. As you can imagine, creating rules with many DSLs would become overwhelming quickly to sort through. I think maybe we should use a Tree view instead of a list here. This would allow you to drill down to nested DSL statements. Also, when creating a child of the DSL statement, only the children DRL statements should be displayed on the screen.

      Attached are the current entry, and a mockup of how I would like to see this working in the future. I think it could simplify and organize the fact creation quite a bit.

              manstis@redhat.com Michael Anstis
              brad.davis@amentra.com Brad Davis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: