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

Allow escaping characters in metadata value

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.1.0.M1
    • Fix Version/s: 5.1.0.M2
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tirelli Edson Tirelli
                  Reporter:
                  tsurdilovic Tihomir Surdilovic
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: