ScanFileClient example

Sort:
You are not authorized to post a reply.
Author
Messages
slavo
Basic Member
Posts: 8
Basic Member
    I am relatively new at PF development, but what I read, I want to use ScnaFileClient to kick off a Flow when someone FTP's a file to a directory.  I know I need to create a ScanFileCLient.cfg   but I don't really know how to use it.  Can someone give be a very simple explanation on how to of ScanFIleCLient?  Perhaps an example?  We are a Windows shop.  Thanks.

    John Henley
    Posts: 3352
      You create a ScanFileClient config file for each unique folder you want to monitor/process flow you want to run (i.e. unique config/parameters are required for monitoring each given directory); the config file has the following parameters:

      # Lawson host name or IP address
      BCIHost=lawson.example.com
      # Port number for Process Flow
      BCIPort=16002
      # logan
      CCProdLine=logan
      # username/password for running process flow; get the encrypted password from %LAWDIR%/system/pfserv.cfg
      HostLogin=lawson
      Password=<>
      # Process flow service to execute for each incoming file
      Procedure=<>
      # TRUE to read entire file or FALSE for record by record (i.e. each record creates a workunit)
      Batch=TRUE
      # folder to monitor
      ScanDir=E:\incoming
      # file types to look for
      Extension=.CSV
      # optional location to archive files after processing
      ArchiveDir=E:\archive

      Manually invoking ScanFileClient:
      E:\LINTE\gen\bin\ScanFileClient.exe -ConfigFile ScanFileClient-Sample1.cfg -ErrorLogFile ScanFileClient-Sample1.errors -LogFile ScanFileClient-Sample1.log

      To invoke it automatically at system startup, you can include that command in a startup script.

      Or you can add it to %LAWDIR%/system/laserv.cfg with a tag:

      scfsamp "E:\LINTE\gen\bin\ScanFileClient.exe -ConfigFile ScanFileClient-Sample1.cfg -ErrorLogFile ScanFileClient-Sample1.errors -LogFile ScanFileClient-Sample1.log"

      And then use:
      E:\LINTE\gen\bin\startserv.exe scfsamp
      Thanks for using the LawsonGuru.com forums!
      John
      slavo
      Basic Member
      Posts: 8
      Basic Member
        Thank you John.  That is exactly what I was asking for.  Much appreciated.

        You are not authorized to post a reply.