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

Allow escaping characters in metadata value

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.1.0.M2
    • 5.1.0.M1
    • None
    • None

    Description

      Currently if you add the following metadata to a rule:

      rule xyz
      @text("it's an \"airplane")
      .....
      end

      if you print the metadata with:

      System.out.println(ksession.getKnowledgeBase().getRule("org.sample.myrules", "xyz").getMetaAttribute("text"));

      the output is:

      "it's an \"airplane"

      escaped characters should be handled correctly here.

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty