Context.Transaction.Documents and returns a boolean.
Checking for rule errors in a document
The script below returnstrue if at least one transaction document has rule errors, an undetermined document class, or suspicious symbols. Otherwise it returns false.
Checking whether manual review is required
The following script returnstrue — routing documents to manual review — if at least one transaction document has any of:
- Rule errors
- An uncertain document type
- Suspicious fields or field characters (including nested children and repeating instances)
false and the documents continue to the export step.
Related topics
Context
Global object exposing the current transaction, document, and processing.
Transaction
The current processing transaction and its documents.
Document
The document being processed by the Condition activity.
Field
Properties for reading a document field’s value, type, and OCR metadata.
RuleError
A Document skill validation rule error raised against a document.
Object model
Full JavaScript object reference for Condition activity scripts.
