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
Cloverleaf
Single File Pickup
Jason Russell
Want to see if anyone has done something similar to this. I have a few ideas on how to handle this, but I'd rather not have a lot of moving parts, and want to try to not have to test this repeatedly.
So we're doing a batch file, but the downstream system can only handle (or only wants to handle) a specific number messages, once a day. Splitting the bulk message into subsets of messages isn't a difficult, that is in place. What I'm wanting to do from here is only pick up one of those split groups per day. So the bulk split may create 5 different files, I want the fileset-local to only pick up one of those a day. Can this be done natively?
If not, it would probably take a scheduled task via cron/scheduler to rename a file once a day to something the inbound can pick up, but I'm hoping to avoid that to simplify troubleshooting.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Have you investigated the DirParse UPoC of the Fileset Protocol?
In the simplest form, if you want only the oldest to be picked up, your DirParse routine would be presented with a list of the files found during directory parse. I believe the default is timestamp order meaning the oldest would be the first in the list (I think). Then simply remove all but the first file in the list and return the list to the engine.
If timestamp is not oldest first, then specify full detail on the parse and now you will get the date/time of each file found (I think) and you can have logic to handle that.
As to timing, use advanced scheduling to have this only run once per day.
Jason Russell
So each instance of the trigger only happens once, so if it picks up a file based on the directory, it won't pull the others until the next time trigger?
Jim Kosloskey
Each time the scheduled event happens (in your case when the advanced scheduling says it should), the protocol scans the directory specified and creates a list of files found. If there is a DirParse UPoC stack, the first proc in the stack is presented with the list. The proc(s) can then 9if they choose) manipulate that list and return the manipulated list. ONLY the files in the returned list are processed during this scheduled event (in your case, one file).
It would then be your responsibility to make sure all of the files eventually get processed. For example, if you create more than 30 files and there are only 30 days in a particular month, you would not have processed all of the files by the end of the month. But that may be OK in your scenario as the protocol will continue to pick up one file per day. You just need to be aware it will not be precise.
If you want to go into any more detail, let's take this off-line - email me.
Jim Kosloskey
Jason, did you get this resolved?
Jason Russell
I did, using a script inte parsing directory as you mentioned. It picks up all the results and sends a single message as response, works as expected, thank you!