Develop a custom job item
Develop custom job items in C# as follows:
- Install the custom job item template. See the Install the Visual Studio templates topic for details.
- Open Visual Studio with admin rights.
-
Create a new project using the Visual C#/Kofax/Workflow XML Designer Custom Job
Item Library (v22) template.
This template is in the Installed templates.
-
Delete the unnecessary code details.
The created project and code can be built and run by itself. The code contains the following classes:
-
The worker job item, that originates from a job item within the OmniPageCSDK.IproPlus namespace.
-
The design job item, that originates from a job item within the OmniPageCSDK.IproPlus.JobDesign namespace.
-
The class providing the minimal UI for the design job item it the Workflow XML Designer. It is included in a .xaml file.
-
-
If you create custom job item for the first time, test the process flow.
- Build the project. Make sure to use the proper version of CSDK (32-bit or 64-bit) and to select the proper platform.
- Start workflow XML Designer, and select .
-
Browse to the assembly built in 5.a.
The line is filled with the name and path of the assembly, and the name of the design JobItem class.
- Click Ok.
- Create a new job.
- Find the new job item in the upper right window, and drop it to the job.
- Select Output XML File in the lower right window, and enter the SampleParameter.
- Select .
In the lower right window, the Content of Output XML File field changes from (none) to (XML Content). It can be viewed by clicking the ... button.