There are some things I see which might be a problem:
1. Instead of
getContext().getSession().createContext()
you can just use
getContext()
2. According to the documentation the Core.execute methods takes a HashMap<String, Object> as input parameter, so it may help if you change the type of your HashMap. Since String is an object anyway, the rest of your code shouldn't need refactoring.
3. Finally, you can just create a normal HashMap, instead of a LinkedHashMap.
Your final code should look something like:
HashMap<String,Object> params = new HashMap<String, Object>();
params.put("xmlResponse", xmlResponse);
logger.info("message is: "+xmlResponse );
Core.execute(getContext(), config.getMicroflowName(), params);
Thanks Rom, It worked. It took nearly half day to identify this.