Updating the Routing ruleset to split the batch

You use the existing Routing ruleset to split the batch by using a document-level variable that you created for this purpose.

About this task

You must set this variable for any document that contains a manually identified page. The Routing ruleset runs at the end of the Profiler task profile after recognition and validation tasks are completed.

Procedure

To update the Routing ruleset to split the batch:

  1. In the Datacap Studio Rulesets pane, select the Routing ruleset and click Lock/Unlock ruleset.
  2. Expand the Routing ruleset, Routing Rule 1, and the Set Manual Page Status function.
  3. Select the Set Manual Page Status function and add the following action and parameters to the end of the function.
    Library Action Parameter
    rrunner rrSet varSource = Yes

    varTarget = @D.Split

    This function assigns the value Yes to a document-level variable called Split, and creates it if necessary.

  4. Right-click the Routing ruleset and choose Add Rule. Rename the new rule Batch Splitting.
  5. Expand the Batch Splitting rule, select Function1, and add the following action and parameter.
    Library Action Parameter
    Split SplitBatch @D.Split

    This action raises the condition flag and creates a child batch that contains any documents with the document-level variable Split. In this case, the only possible value of the variable is Yes. So, all documents are sent to the same child batch.

  6. In the Rulesets pane, click Save. Then, click Lock/Unlock ruleset and choose Publish Ruleset.