Creating custom job sweep referring the action

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:

  1. Start the administration console (FileNet P8 ACCE).
  2. In the domain navigation pane, click the object store.
  3. In the object store navigation pane, open the Sweep Management > Job Sweeps > Custom Jobs folder.
  4. Click New in the Custom Jobs tab.
  5. 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.
  6. 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
  7. Do not define any start or stop dates, so that the job can be run immediately. Click Next.
  8. Verify the summary and click Finish
  9. Wait for the custom job to be created.
  10. 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
  11. Scroll down to view the Examined, Processed, and Failed object counts.
  12. Check the results or errors in the Sweep Results tab.
  13. 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.
  14. 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.
  15. You are ready to run your Datacap application.