Trigger Process Flow

 4 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
FireGeek21
Veteran Member
Posts: 84
Veteran Member
Is it possible to trigger a process flow (PFI, Lawson S3 v9) if a file is present in a specific folder?
John Henley
Posts: 3362
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Yes, you need to use the ScanFileClient, which is part of the ProcessFlow Integrator (formerly BCI).
https://www.lawsonguru.co...nfileclient-example/
Thanks for using the LawsonGuru.com forums!
John
JimY
Veteran Member
Posts: 510
Veteran Member
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
Veteran Member
New Poster
New Poster
Congrats on posting!
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
Posts: 3362
New Poster
New Poster
Congrats on posting!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
NB. File Channel is for IPA (v10) vs. ScanFileClient is for PFI (v9) -- which is what original poster was asking.
Thanks for using the LawsonGuru.com forums!
John