QAID # 5268 Published
Question / Problem:
Is it possible to modify the included sample Workflow Agent to not include OMR Zones in its evaluation of the Index Fields' Confidence Level?
Answer / Solution:
Yes, there is a way to modify the included sample Workflow Agent to not include OMR Zones in its evaluation of the Index Fields' Confidence Level.
In the Processworkflow Sub in the SampleWorkflowAgent.cls file, look for the line that reads:
For Each oDocumentElement In oDocumentsCollection
Below that, look for the line that reads:
For Each oIndexField In oIndexFieldsCollection
In the body of that loop, right below the remark:
'*** If the recognition type is manual we must go through validation
is an If statement that reads:
If (oIndexField.AttrubuteValue("RecognitionType") = strManual And _ oIndexField.AttributeValue("RecognitionType") <> "5") Then A RecognitionType of "5" = OMR, as can be seen in the AcBatch.htm and AcDocs.htm files located in the \Program Files\Ascent folder on a Standalone installation, or the \AscentSV folder on a Server installation.
Instead of using the literal value of "5", you can assign a constant as is done for the strManual constant:
'*** Recogniton Type
Private Const strMANUAL = "1"
Private Const strOMR = "5"
and then the additional condition would be:
And oIndexField.AttributeValue("RecognitionType") <> strOMR