Error processing SSI file
LEADTOOLS JobProcessor (Leadtools.JobProcessor.Job assembly)

Show in webframe

SetFailureStatus Method






ID (GUID) of the job to update.
Error code for the job.
Error message for the job.
Metadata which contains information on how this job should be processed.
Sets the status of a job to Jobstatus.Failed.
Syntax
public JobStatus SetFailureStatus( 
   string jobID,
   int failedErrorID,
   string failedMessage,
   string jobMetadata
)
'Declaration
 
Public Function SetFailureStatus( _
   ByVal jobID As String, _
   ByVal failedErrorID As Integer, _
   ByVal failedMessage As String, _
   ByVal jobMetadata As String _
) As JobStatus
'Usage
 
Dim instance As JobBase
Dim jobID As String
Dim failedErrorID As Integer
Dim failedMessage As String
Dim jobMetadata As String
Dim value As JobStatus
 
value = instance.SetFailureStatus(jobID, failedErrorID, failedMessage, jobMetadata)

            

            
public:
JobStatus SetFailureStatus( 
   String^ jobID,
   int failedErrorID,
   String^ failedMessage,
   String^ jobMetadata
) 

Parameters

jobID
ID (GUID) of the job to update.
failedErrorID
Error code for the job.
failedMessage
Error message for the job.
jobMetadata
Metadata which contains information on how this job should be processed.

Return Value

A JobStatus that represents the new status of the specified job.
Remarks

Use this method to set the status of a job to Jobstatus.Failed. If the job is not found, Jobstatus.NotFound will be returned.

If an empty string is passed for the jobMetadata parameter the existing job metadata for the job is maintained. For more information on how the jobMetadata property is used, refer to Understanding The LEADTOOLS Job Processor Database.

Example
Refer to the OCRJobProcessorDemo. Depending on the programming language being used, the demo will be found in either the <installationdir>\Examples\DotNet\CS\OCRJobProcessorDemo directory. or the <installationdir>\Examples\DotNet\VB\OCRJobProcessorDemo directory. The <installationdir> represents the directory in which you installed the LEADTOOLS toolkit.
Requirements

Target Platforms

See Also

Reference

JobBase Class
JobBase Members
Programming with the LEADTOOLS Distributed Computing (Job Processor) SDK
Creating Job Processor Worker Assemblies
Understanding The LEADTOOLS Job Processor Database

Error processing SSI file