I have an issue in TOS 5.4.
I need to create xml file according to field gathered from another xml. And I need to have dynamic file name of output file. But globalMap.get returns null in file name field.
I have checked that I have such value in globalMap by tJava element.
Please see screenshots.
Code in tJava_1
System.out.println("/Outbound/tokenRequestTemp/" +((String)globalMap.get("requestId"))+ ".xml");
I'm really stuck with that. Because I was using globalMap like this in another Output components and it was working fine.
Thanks in advance.
Solved! Go to Solution.
Yes in tJavaRow_1
And value is not null. I'm checking it in tJava_1 and output is correct.
This is how I'm put requestId in globalMap in tJavaRow_1
String requestId = (String)globalMap.get("tWaitForFile_1_FILENAME"); requestId = requestId.substring(0, requestId.length() - 4); requestId = requestId.replace(" ", "_"); globalMap.put("requestId", requestId);
No matter what I'm writing in file name: globalMap.get("requestId") or tokenRequest.requestId - output file name is still null.
Don't forget to tag when it's "solved"!