title: How to fetch Map from jmeter global properties in different thread
body: <p>I am using Jmeter 5.0 where i have piece of java code written inside a JSR223 PostProcessor in a single thread group. The values are getting stored inside the maps and i can view it in the Debug Sampler. The code is as follows -</p>
  
  <pre><code>import java.util.Map;
  import java.util.HashMap;
  
  Map gamePlayHistoryMap = new HashMap();
  gamePlayHistoryMap.put(vars.get("playerId"), vars.get("GameplayHistoryId"));
  props.put("GamePlayHistoryMap", gamePlayHistoryMap);
  
  Map payLevelDetailsMap = new HashMap();
  payLevelDetailsMap.put(vars.get("playerId"), vars.get("PayLevelDetails"));
  props.put("PayLevelDetailsMap", payLevelDetailsMap);
  </code></pre>
  
  <p>Now i want to access the values of these 2 maps in different thread group. How to do that ? I have tried using JSR223 PreProcessor where i have written code as follows -</p>
  
  <pre><code>import java.util.Map;
  import java.util.HashMap;
  
  
  Map gameTemplateIdMap = props.get("GamePlayHistoryMap");
  Map payLevelDetailsMap = props.get("PayLevelDetailsMap");
  </code></pre>
  
  <p>I am unable to get the values as stored in previous thread.Can someone help me in pointing where i might have gone wrong ?</p>
  
  <p>1st Thread Debug Sampler -</p>
  
  <blockquote>
    <p>GamePlayHistoryMap={107=3387} HTTPResponse.parsers=htmlParser
    wmlParser cssParser
    PayLevelDetailsMap={107={"prizeQuantity":0,"prizeType":{"prizeTypeId":2,"prizeName":"Cash","description":"Promotional
    Cash","listofErrors":[],"isValid":true},"isValid":true,"description":"$0.3","externalPrizeID":null,"prizeTypeID":2,"gameTemplateID":0,"isNotifySocial":false,"prizeValue":0.3,"payMethodID":1,"winProbability":17.5,"celebrationLevel":null,"payMethod":{"payMethodID":1,"name":"CMS","description":"Account","listofErrors":[],"isValid":true},"listofErrors":[],"payLevelTemplateID":41170,"isNotifySignage":true,"position":3,"celebrationLevelID":1}}</p>
  </blockquote>
  
  <p>2nd Thread Debug Sampler -</p>
  
  <blockquote>
    <p>GamePlayHistoryMap={107=} HTTPResponse.parsers=htmlParser wmlParser
    cssParser PayLevelDetailsMap={107=}</p>
  </blockquote>