Forum Discussion
hellrid1
13 years agoOccasional Contributor
That worked!
The filename was
"OH Row 00001 ID 1811 PRODUCT-2581-3007 Output.xml"
I created the "Filename" property in the directory DataSource.
In the Groovy script, I right clicked for the “Get Data” option to generate this line of code:
def fn = context.expand( '${ DataSource#Filename}' )
Then I split the string to get the value that I needed:
String [] fnSplit = fn.split(" ");
def id = fnSplit[4];
log.info(id)
The only thing This is a very useful feature because I can pass values that are not part of the XML.
I was wondering is where is this documented.
How is anybody supposed to know that this feature exists?
Thank You,
Dan H.
The filename was
"OH Row 00001 ID 1811 PRODUCT-2581-3007 Output.xml"
I created the "Filename" property in the directory DataSource.
In the Groovy script, I right clicked for the “Get Data” option to generate this line of code:
def fn = context.expand( '${ DataSource#Filename}' )
Then I split the string to get the value that I needed:
String [] fnSplit = fn.split(" ");
def id = fnSplit[4];
log.info(id)
The only thing This is a very useful feature because I can pass values that are not part of the XML.
I was wondering is where is this documented.
How is anybody supposed to know that this feature exists?
Thank You,
Dan H.