1 Reply Latest reply: May 15, 2014 10:00 AM by Gareth Horton RSS

    Stopping a Process using a script

    akaras _

      Is it Possible to stop a process from running PreExport using a script.

      For example I want to compare the last modified dates of the Import and Export files and stop the process from running if the Import file has not been modified since the last export.

       

      Thanks for any help.

        • Stopping a Process using a script
          Gareth Horton

          Akaras -

           

          Just return false in the PreExport script and the job will fail.

           

          You will get the following job error:

           

          "User script function PreExport returned false"

           

          This will cause a SystemAlertJobFailed event to be fired.

           

           

          Gareth

           

           

          Originally posted by akaras:

          Is it Possible to stop a process from running PreExport using a script.

          For example I want to compare the last modified dates of the Import and Export files and stop the process from running if the Import file has not been modified since the last export.

           

          Thanks for any help. /b[/quote]