Rulesets, rules, and actions

A ruleset consists of one or more rules. The rule itself is defined by the programmed functions and actions within it.

The default PageID ruleset has two rules, which are PageID and Set Fingerprint parameters. You can see the rules that are associated with each ruleset in the Rulesets panel on the Datacap Studio Rulemanager tab.

Rules are assigned to process specific objects in the document hierarchy (for example, to analyze and identify each page).

The default PageID rule consists of one function and two actions. The PageID function first launches the AnalyzeImage action. If AnalyzeImage is successful (returns True), the function launches the FindFingerprint. If AnalyzeImage fails (returns False), the function fails and Datacap launches the next function within the rule. In this case, there is not another function, but you could add an exception handling function to handle the error. See Rule Execution.

When you login to an application, Datacap Studio searches for and imports the rulesets from DLLs that are not in the collection.xml file yet. It searches the Rules folder for the application first, then it searches the central RRS folder. During this operation, the Update Status bar indicates that the current file is being processed with a rotating spinner. When the spinner is gone, the operation is finished.