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

Add information such as line number or source code in VerifierComponent

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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Optional
    • 5.4.0.Final
    • None
    • drools-verifier
    • None

    Description

      We can link the VerifierComponent with their descriptions.
      This provides a simple access to information from the descriptions of the component or its associated VerifierMessageBase.

      I tested this by adding to the VerifierComponent constructor the BaseDescr :
      public abstract class VerifierComponent implements Comparable<VerifierComponent>, Cause {
      private BaseDescr descr;
      public VerifierComponent(BaseDescr descr)

      { this.descr = descr; }

      ...
      }

      And integrate that in all Visitors.
      This seems to work. ( https://github.com/jerr/drools/tree/line-number-in-verifier )

      What do you think of this, I can add test cases and provide a patch or git pull request.

      Attachments

        Activity

          People

            trikkola Toni Rikkola
            jer_jira Jérémie Lagarde (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty