Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3386

DRL component information not available via the (stable) API

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 5.4.0.CR1
    • 5.4.0.Beta2
    • drools-api
    • None

    Description

      Rule authors may write DRL according to a public/stable definition, but most of this information is not available via the stable API forcing programmers to delve into instable classes and methods, thereby compromising the maintainability of their code if they want to write code for documenting the contents of Knowledge Packages. - Some of these items are available from the KnowledgeBase but you have to know package name + item name.

      Add methods to org.drools.definition.KnowledgePackage:

      Collection<FactType> getFactTypes()
      Collection<Query> getQueries()
      Collection<String> getFunctionNames()
      Collection<Global> getGlobalVariables() // getGlobals has been wasted for something else

      Global

      { String getName(); Class getType(); }

      Attachments

        Activity

          People

            dsotty Davide Sottara (Inactive)
            laune Wolfgang Laun (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty