Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1336

Globals variables are not present in Globals Data View

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • eclipse plugin
    • Hide
      1. Create default Drools project with HelloWorld rule file
      2. Edit Sample.drl file, add lines:
        global String stringVar
        global Object objectVar
        global List listVar
      3. Edit DroolsTest.java file, add lines:
        kSession.setGlobal("listVar", java.util.Arrays.asList(1, 2, 3));
        kSession.setGlobal("objectVar", new Object());
        kSession.setGlobal("stringVar", "testStringValue");
      4. Debug the project
      5. Open Global Data View
      Show
      Create default Drools project with HelloWorld rule file Edit Sample.drl file, add lines: global String stringVar global Object objectVar global List listVar Edit DroolsTest.java file, add lines: kSession.setGlobal("listVar", java.util.Arrays.asList(1, 2, 3)); kSession.setGlobal("objectVar", new Object()); kSession.setGlobal("stringVar", "testStringValue"); Debug the project Open Global Data View
    • NEW
    • NEW

      I just create this issue since this is problem which is present for very long time but I can't find the corresponding issue in Bugzilla or Jira.

      If global variables are used in drools project and it is debugged. No global variables are present in Global Data View.

              bbrodt_jira Robert (Bob) Brodt (Inactive)
              tdavid@redhat.com Tomas David
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: