Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey there,
I need to read a folder to got all pdf-files in there.
The filename need to be splitted, because there are parts in it that I need for my SELECT Statement.
I wanted to do this wich tJAVARow (any better idea?).
First I used "sysout" to show me my filenames. I got the correct rows but always with the same filename (tFileList_1_CURRENT_FILE).
tFileList --iterate -- titerateToFlow_1 -- tJavaRow (next planning: -> "query to got other informations and rename the file).
Which one is the correct Oracle DB Object? There a a low of it. Is a map necessary?
Inputfile: order_123456_2018_12_26.pdf
Output: DB_ROW1#DB_ROW2#AAA#DATE#OLDNAME.pdf
Thank you
It is finished now \o/
- FileList reads the folder context.inputdir
- iterateToFlow change the internal way to work (my guess)
- JavaRow read each filename and extract the information that is needed
- change flow
- DBInput read each line from db with "... and FIELD = "+((Integer)globalMap.get("row2.FIELDNAME"))"
- change flow
- FileCopy rename and move the file if a record was found in database
-- Name: context.inputdir + "/" + (String)globalMap.get("row2.filename")
-- Target-Folder: context.outputdir
-- Filename: (String)globalMap.get("row3.DBFIELD1")+"#"+(String)globalMap.get("row3.DBFIELD2")+"#"+context.GLOBALFIELD3+"#"+(String)globalMap.get("row2.LOCALFIELD4")
## row2.LOCALFIELD4 comes from the javarow (strsplit), there is already the fileextension in it (lucky "error" while working with it).
It is finished now \o/
- FileList reads the folder context.inputdir
- iterateToFlow change the internal way to work (my guess)
- JavaRow read each filename and extract the information that is needed
- change flow
- DBInput read each line from db with "... and FIELD = "+((Integer)globalMap.get("row2.FIELDNAME"))"
- change flow
- FileCopy rename and move the file if a record was found in database
-- Name: context.inputdir + "/" + (String)globalMap.get("row2.filename")
-- Target-Folder: context.outputdir
-- Filename: (String)globalMap.get("row3.DBFIELD1")+"#"+(String)globalMap.get("row3.DBFIELD2")+"#"+context.GLOBALFIELD3+"#"+(String)globalMap.get("row2.LOCALFIELD4")
## row2.LOCALFIELD4 comes from the javarow (strsplit), there is already the fileextension in it (lucky "error" while working with it).