Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone.
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.
Ok, got it. Its time problem as Francois Denis said.
I have managed it through tRowGenerator
Thank you Francois Denis.
@NikitaMikh,how are you putting global map value for
requestId?
Hello Manohar.
Yes in tJavaRow_1
globalMap.put("requestId", requestId);
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.
Ok, got it. Its time problem as Francois Denis said.
I have managed it through tRowGenerator
Thank you Francois Denis.