Processes new jobs when they are available and ready for processing.
id
A System.String that represents the ID (GUID) of the new job.
userToken
The user token stores information related to the client that submitted the job.
jobMetadata
Metadata containing information on how this job should be processed.
jobType
Type of job. Job Types are defined in the Workers.xml. For more information on the Workers.XML configuration, refer to LEADTOOLS JobProcessor Settings.
progressRate
Frequency, in seconds, that progress is reported using the UpdatePercentage Method.
When Creating a Job Processor worker, your custom assembly will be loaded to process the job. When loaded, the OnJobReceived Method will be called to notify your assembly a new job is ready to be processed. Your implementation of the OnJobReceived Method should block until job processing is complete. For more information on creating Job Processor workers, refer to Creating Job Processor Worker Assemblies.
Post the progress of the current job using the UpdatePercentage Method. Failure to post progress can cause the windows service to assume the process is hung and the windows service will terminate the process. Progress should be posted at the interval specified by the progressRate parameter.
For more information on how the userToken, jobMetadata, and jobType properties are used, refer to Understanding The LEADTOOLS Job Processor Database.
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.
Products |
Support |
Feedback: OnJobReceived Method - Leadtools.JobProcessor.Job |
Introduction |
Help Version 19.0.2017.3.22
|