Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
385 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...