[jboss-jira] [JBoss JIRA] Created: (JBRULES-3009) Provide for declarative Java 1.5 enum definiton in DRL

Michael Anstis (JIRA) jira-events at lists.jboss.org
Tue May 3 09:05:18 EDT 2011


Provide for declarative Java 1.5 enum definiton in DRL
------------------------------------------------------

                 Key: JBRULES-3009
                 URL: https://issues.jboss.org/browse/JBRULES-3009
             Project: Drools
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: drools-compiler (expert), drools-core  (expert)
    Affects Versions: 5.2.0.M2
            Reporter: Michael Anstis
            Assignee: Mark Proctor


Java classes can be defined in DRL using the "declare" keyword.

It would be good to be able to define Java 1.5 enums using "declare" too.

We could then strip the proprietary "Guvnor style enums" from Guvnor and have the UI front DRL supported enums.

Guvnor currently also supports related\dependent enums where the "list of values" for one enum is dependent upon the value from another enum: enum FUEL has values "Petrol" and "Diesel", enum FUEL_DERIVATIVE has values "Unleaded", "Super unleaded", "Bio-diesel" and "City disel". If FUEL.Petrol is selected then only FUEL_DERIVATIVE values of "Unleaded" and "Super unleaded" can be chosen. This functionality would still need to be provided by Guvnor as it is used as "author-time" restrictions not runtime.

--
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