Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
387 views
in Technique[技术] by (71.8m points)

kofax - Unique KTA Job name

In KTA when you create a job it will create unique jobID (GUID). Is it possible to associate my own unique id for each job. Like new field for that job KTASharp-[dateTimeStamp]?

FYI: I am using jobService.CreateJobWithDocuments method


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Unlike batches in Kofax Capture, KTA jobs do not have names.

You can create a custom Work Type with “Job Name” as one of your fields. Associating the work type to your process adds process variables for each field, and you can set those however you’d like, including as an initialization variable set by your call to CreateJobWithDocuments. The work type can then be used in a Work Queue Query either to make your “Job Name” field visible as a column in the work queue, or to filter on it.

You can also just use a process variable to hold a name for the job and then use it however you’d like. But generally when someone wants a “name” it is because they want to see it in the work queue as context for users: work types and work queue queries offer an easier way to do that.

You might also think more deeply about what you intend to use as a "name". If you are think of creating a name that just concatenates several properties, you might instead just add each of those as separate fields in the work type, then they remain distinct fields that you can use as needed.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...