jobToken Property

Summary

Job token associated with this job.

Syntax
TypeScript
JavaScript
Object.defineProperty(StatusJobData.prototype, 'jobToken', 
   get: function() 
) 
readonly jobToken: string; 

Property Value

Job token associated with this job. The default value is null.

Remarks

The userToken and jobToken properties must be set by the application, prior to running the job, and combining them to create a unique string. Internally, the runner will use userData and jobToken as the Region and Key of the cache item added to the cache.

In normal cases, the userToken can be set to the user name of the application and used for all the jobs submitted by this user. While jobToken should be a unique identifier for each job, usually set to a GUID.

userToken and jobToken will then be passed by the application to the StatusJobDataRunner.queryConvertJobStatus method to obtain the latest status of the job or to abort it with StatusJobDataRunner.abortConvertJob.

Example

For an example, refer to StatusJobDataRunner.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.