[jboss-jira] [JBoss JIRA] Created: (JBRULES-2891) Nested DSL UI Suggestion

Brad Davis (JIRA) jira-events at lists.jboss.org
Mon Feb 7 11:17:39 EST 2011


Nested DSL UI Suggestion
------------------------

                 Key: JBRULES-2891
                 URL: https://issues.jboss.org/browse/JBRULES-2891
             Project: Drools
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: drools-guvnor
    Affects Versions: 5.1.1.FINAL
            Reporter: Brad Davis
            Assignee: Mark Proctor
            Priority: Minor
         Attachments: current-fact-entry.jpg

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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list