About this task
With the sweep action that is defined in the previous section, now you are ready to create
a sweep job to use the custom sweep action. You also specify the sweep targets or criteria that
identify the documents that the custom sweep action applies to. For the Datacap scenario, the criteria should identify all the documents
that are processed by the Datacap application.
Procedure
To create custom sweep action follow the following steps:
-
Start the administration console (FileNet P8
ACCE).
- In the domain navigation pane, click the object
store.
- In the object store navigation pane, open the Sweep Management > Job Sweeps >
Custom Jobs folder.
- Click New in the Custom Jobs
tab.
- Enter a name for the sweep job, change the Sweep mode to
Preview for testing the query script, or Normal to
run. Do not enable custom sweep yet, and click Next.
- Define the sweep target class, example that is given, Document. Define the filter
expression, example given IsCurrentVersion=True AND Document title LIKE
‘Invoice%’. [Optional] Enable Include subclasses and Record failures. Select the
sweep action that we defined in the previous section from the choice list
drop down, and click Next
- Do not define any start or stop dates, so that the job can be run immediately. Click
Next.
- Verify the summary and click Finish
- Wait for the custom job to be created.
- To test the Job sweep, open the custom job, click Enable for
status, [Optional] go to the Properties tab and change the batch limit, Click
Save, and Refresh
- Scroll down to view the Examined, Processed, and Failed object counts.
- Check the results or errors in the Sweep Results tab.
- If you had chosen the Preview sweep mode, and there were no errors in the Sweep Results
tab, you can clone the sweep job and change the sweep mode to ‘Normal’ to run the actual job
sweep.
- If you had chosen the Normal sweep mode, look at the output directory that you specified
in the JavaScript to verify that the document content was downloaded as expected.
- You are ready to run your Datacap
application.