rule

  • 05 May

    Q&A 7: Can we test a rule before it actually runs in LimagitoX File Mover

    Q: Is it possible to test a rule before it actually runs? To make sure filename, pattern match works and destination is accessible?
    A: Let us explain you how we mostly test a rule. We have two methods.

    First method:

    Disable the Scan Timers in the schedule setup:

    LimagitoX-Disable-Scan-Timers

    Set the ‘Max. Files processed in One Scan’ to 1 during tests:

    This way only a single file is processed when you start the rule manually.

     

    Second method:

    Setup Source and Scan Timers as you normally do and add the following Pascal Script as Destination:

    Begin
      psExitCode:= 1;
      // ... add your code here
      psLogWrite(1, '', psFilePath + psFileName);
    End.

    LimagitoX-Add-Pascal-Script

    Be sure to set function to ‘Copy’ because we don’t want to delete any files from the Source:

    LimagitoX-Copy-Function

    Open Logging Setup of this moving rule:

    LimagitoX-Logging-Menu

    Enable history logging to save the received information from the Pascal Script in a log file. Let the rule run and check the content of this log file.

    LimagitoX-Logging-Setup

    If you need help, please let us know.

    Regards,

    Limagito Team

    By Limagito-Team Q&A ,
SEARCH