CheckAllIntegrity action
The Datacap Studio rrunner actions library includes the CheckAllIntegrity action that checks the structural integrity of a batch.
| Library | Action | Description |
|---|---|---|
| rrunner | CheckAllIntegrity | Returns True if the current batch meets the requirements that are defined in the document hierarchy; returns False otherwise. |
Important: You must run this action within a rule that
runs at the batch level.
CheckAllIntegrity does not change the status variable on non-conforming documents. Instead, the action returns False if there is a document integrity issue, which you can use to trigger corrective action.
In the log file that is generated by the Rulerunner task profile (rulerunner_rrs.log), you can see the code that is returned by CheckAllIntegrity if the action returns False. If the batch includes multiple problems, the code represents the last problem. Theses codes represent different problems:
- 1 = Has more child objects than allowed by max attribute
- 2 = Has fewer child objects than required by min attribute
- 3 = A child object is not of a type that is supported by parent
- 4 = A child object is in the wrong position as specified by the pos attribute