Script functions reference > Script functions in alphabetical order > S > SetJobStatus

SetJobStatus
Syntax
SetJobStatus(Job_GUID, Status_Code, Job_Message);
Job_GUID
Status_Code
2 - Fail
1 - Warning
0 - Success
Job_Message
A string with a message that is assigned to the job after the status update. This can be an empty string.
Description
Updates the status of a processing or output job.
Returns
0
-1
-2
-3
-4
Example
SetJobStatus("0304CEF1-9A14-4C38-AFE4-A3621FFD3128", "0", "Completed successfully");
OpenText StreamServe 5.6.2 Updated: 2018-01-26