PDA

View Full Version : Stopping a Process using a script



akaras
December 7th, 2005, 02:11 PM
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.

Gareth Horton
December 7th, 2005, 03:12 PM
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.