infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Output from a DirectoryParse Tcl script
Jon Blanchard
This is a dumb question, but what is the output format expected from a Directory Parse Tcl script used with the fileset-local protocol in a thread?
The output that I generate is a list of the directory and file paths to successful candidate files, but also an error message:
[0:TEST] 'D:quovadxqdx5.5integratorplidata/CHROM_Data_08.vrl' (returned by 'tpsDirectoryParse {DIRECTORY {D:quovadxqdx5.5integratorplidata}} {FILEMASK {*Data_[0-9][0-9].vrl}}') does not match { <key> <value> }
I tried to generate a keyed list using the key FILENAME, but that did not work, either.
Any help would be appreciated. Thanks in advance for your response.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Jon,
Not a dumb question.
That is supposed to be a list with the file names only I believe.
To verify, echo out the directory list you receive I think you will see the directory information is not there.
Since the Fileset protocol can only parse one directory it doesn't need to include the directory in the list it gives you and does not need it back either.
david_barr
From the error message, it sounds like you are returning a string that contains the list of files. What you should be returning is a message disposition list. Your proc will be passed a message handle, and you do a msgget on that handle to see the list of files in the directory. You should modify the list, msgset the message with the new results and return "CONTINUE $mh".
System
Originally posted by Ron Archambault
There's also some examples of these types of procs in $HCIROOT/contrib.
RobertKersemakers
David, I have to disagree with you.
Jim already explained it: the message in the Directory Parse is a list of all the filenames that were scanned. You can then manipulate this list to decide which file you want/don't want to process (yet).
And it's filenames only, not full paths.
Rob Abbott
David is correct.
You must return a message handle with a disposition of CONTINUE. The contents of this message are a list of filenames (full paths are OK).
Jon is returning a literal string, not a message handle...this is where the problem lies. So Jon to fix your problem (assume $filename contains your filename to process)
msgset $mh $filename
lappend dispList "CONTINUE $mh"
Hope this makes sense.
RobertKersemakers
I stand corrected!
I only read David's post halfway through. My apologies!