Forums
IPA/ProcessFlow
Trigger Process Flow
Author
Messages
FireGeek21
Veteran Member
Posts: 84
7/11/2017 10:57 PM
Is it possible to trigger a process flow (PFI, Lawson S3 v9) if a file is present in a specific folder?
John Henley
Senior Member
Posts: 3348
7/11/2017 11:14 PM
Yes, you need to use the ScanFileClient, which is part of the ProcessFlow Integrator (formerly BCI).
https://www.lawsonguru.co...nfileclient-example/
JimY
Veteran Member
Posts: 510
7/12/2017 9:41 AM
You can also use a file Channel to kick off a flow. We have several flows that are kicked off this way. We are on Landmark 10.1.1.23 in production and 10.1.1.56 in test.
Dave Curtis
Veteran Member
Posts: 136
7/12/2017 10:10 AM
John and Jim have the more technically correct way of doing this most likely but I have never used the ScanFileClient or the file Channel (I will be looking into them). However - I do have a number of processes that are run only if a file is present on a specific folder. These are processes that do things like enter new hires into Lawson from our ATS system (only when a file is present to consume off the ATS system), another updates requisitions in Lawson based on a data file from the ATS system. A few of them update deductions in Lawson based on vendor files that are sent periodically, and there are a few others.
All of these have a specific purpose of picking up a data file and consuming it as data entry of one sort or another into our Lawson system. The first step of all these processes is to first determine if a file is available to consume. If it is not - an email is sent to the applicable team to let them know that a file was not processed.
The processes use the file access node in process flow/IPA and in some cases it performs "Check file exists", if the file exists the process continues. I also have a couple that kick off other processes based on what file is present on the folder. In that case it uses the "List file" function and pulls a list of files on the folder and based on what files are on the folder it uses a decision node to direct the process to kick off specific things.
So there are different ways to manage what it sounds like you need to do but yes - it is possible.
John Henley
Senior Member
Posts: 3348
7/12/2017 12:45 PM
NB. File Channel is for IPA (v10) vs. ScanFileClient is for PFI (v9) -- which is what original poster was asking.