OCR Migration Notes
OCR processing
Flushing documents is disabled by default. To enable flushing, add the -DflushEnabled=true parameter to the config file:
For IA Cloud Enterprise, edit ocr-worker.yml:
ocr.task.command: '["java","-Xmx3072m", "-DflushEnabled=true", "-cp","ocr-task-<version>.jar:lib/*","com.wf.ocr.OcrTaskApplication","$CONFIG"]'For IA Cloud Express/Business, edit application.properties:
ocr.task.command=["java","-Xmx1024m", "-DflushEnabled=true", "-cp","ocr-task.jar;lib/*","com.wf.ocr.OcrTaskApplication","$CONFIG"]
Removed API
The GET /api/v1/cloud/processDocument endpoint has been removed due to URL
length limitations of GET method. POST /processDocument is used instead of GET /processDocument.
Removed GET method must be replaced by the POST method in business processes. For
example, <http url="${processDocumentUrl.toString()}" method="get" /> will
be replaced by <http url="${processDocumentUrl.toString()}" method="post" />.
OCR API Methods
Replace patternName parameter with the pattern parameter that is passed
by content, not file name.
Affected endpoints:
/processImage/submitPatternadded/trainPatternrenamed tomergePatternthat is combined with new one/processDocumentuses pattern submitted with/submitPattern
Use useDefaultPattern=true instead of patternName=default.
Affected endpoints:
/processImage/processDocument