0 Replies Latest reply on Sep 7, 2012 11:59 AM by Ava Huxley

    Using Globals defined from Action Editor -> Globals Editor

    Ava Huxley Newbie

      My variable is defined as the following in Globals editor:

      // define your globals here: e.g. global java.util.List myList

      global java.util.List myList

      Then in the Texual Editor, java Dialect is used and the myList is initialized, finally it is accessed using kcontext.getVariable("myList"):

           myList = new java.util.LinkedList<String>();



           System.out.println("kcontext.getVariable(myList)=" + kcontext.getVariable("myList"));

      Result is strange to me: kcontext.getVariable(myList)=null

      Can you please explain the purpose of this Globals and how to use it correctly? ... Thanks!