I need to get the graph file name that is specified in the global property fileURL.
For example:
I've tried using getGraph().getGraphProperties().getProperty("fileURL") but this returns a null.
I've also tried:
But the results still don't give me the actual graph file name. Any other suggestions?
Thanks,
Jennifer
For example:
<Global>
<Property fileURL="c:/Core/config/979/DEMO.grf"/>
<Property name="JobGroupRunID" value="979"/>
<Metadata id="INPUT_METADATA_1" fileURL="c:/Core/config/979/itr_fixed.fmt"/>
<Metadata id="INPUT_METADATA_2" fileURL="c:/Core/config/979/itr_delimited.fmt"/>
</Global>
I've tried using getGraph().getGraphProperties().getProperty("fileURL") but this returns a null.
I've also tried:
java.util.Properties props = getGraph().getGraphProperties();
java.util.Set entries = props.entrySet();
java.util.Set entries2 = props.keySet();
for (Iterator iterator2 = entries2.iterator(); iterator2.hasNext();) {
String entry = (String) iterator2.next();
System.out.println("^^^ " + entry);
System.out.println("@@@ " + props.getProperty(entry));
}
But the results still don't give me the actual graph file name. Any other suggestions?
Thanks,
Jennifer
-
Hello, could you show more of your code? You probably call getGraphProperties() method too early.
Please sign in to leave a comment.
Comments 1