Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I found the way to store values from tHashInput component to globalMap object and to fetch these values in Java application.
So after tHashInput component I put tJavaRow component. In tJavaRow component I created new HashMap and inside that map I put db table record. After that I put that HashMap instance to globalMap in the same jJavaRow component.
//Instantiate metadata Map
java.util.Map<java.lang.String, java.lang.Object> docMetadata = new java.util.HashMap<java.lang.String, java.lang.Object>();
//Fetch document metadata and put it in the Map
docMetadata.put("documentID", metadata1.DocumentID);
docMetadata.put("documentName", metadata1.DocumentName);
docMetadata.put("creator", metadata1.Creator);
//Put metadata in global Map
globalMap.put("docMetadata", docMetadata);
metadata1 is connection name from tHashInput component to tJava component.
When I started job in Java application I fetched globalMap using Java reflection.