[jboss-jira] [JBoss JIRA] (DROOLS-1336) Globals variables are not present in Globals Data View

Tomas David (JIRA) issues at jboss.org
Wed Oct 19 10:43:00 EDT 2016


     [ https://issues.jboss.org/browse/DROOLS-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas David updated DROOLS-1336:
--------------------------------
    Steps to Reproduce: 
# 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

  was:
# 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



> Globals variables are not present in Globals Data View
> ------------------------------------------------------
>
>                 Key: DROOLS-1336
>                 URL: https://issues.jboss.org/browse/DROOLS-1336
>             Project: Drools
>          Issue Type: Bug
>          Components: eclipse plugin
>            Reporter: Tomas David
>            Assignee: Robert (Bob) Brodt
>              Labels: reported-by-qe
>         Attachments: globals.png
>
>
> I just create this issue since this is problem which is present for very long time but I can't find 
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list