Trying to control thread groups by a variable which I would like to modify in between the thread groups ( I execute the TGs in sequence). Example:

```
Test Plan
JSR223Preprocessor or Listener       #tried them both
--> vars.put(key,Integer.toString(1));
ThreadGroup
---> x=key
JSR223Preprocessor/Listener 
--> vars.put(key,Integer.toString(2));
ThreadGroup
---> x=key

```

Both ThreadGroups will use the last value of key (2 in the example above)? How can I modify the variable in between the Thread Groups executions?