OCR API methods v8.2.x vs v9.2.x
API
Changes below are required in case custom pattern is used in BP.See full API reference.
Replace the patternName parameter with the pattern parameter that is passed by content, not filename.
Affected endpoints:
- /processImage
- /submitPattern - added
- /trainPattern - renamed to mergePattern that is combined with new one
- /processDocument - uses pattern submitted with /submitPattern
Use useDefaultPattern=true instead of patternName=default
Affected endpoints:
- /processImage
- /processDocument
Deprecated API since 9.2
GET /api/v1/cloud/processDocument endpoint has been deprecated due to URL length limitations of GET method.
POST /api/v1/cloud/processDocument endpoint has been added with same functionality.
Use POST /processDocument instead of GET /processDocument
Deprecated GET method should be replaced by POST method in business processes. For example:
before
<http url="${processDocumentUrl.toString()}" method="get" />
after
<http url="${processDocumentUrl.toString()}" method="post" />
The Usage Report Tool can help to find business processes with deprecated endpoint: process-document-checker tries to find processDocument usages by regex.
process-document-checker is available since version 1.1:
Sample application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/wfdb?characterEncoding=UTF-8
spring.datasource.username=workfusion
spring.datasource.password=workfusion
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
checker.process-document-checker.enabled=true
audit.report.enabled=false
checker.package-checker.enabled=false
checker.plugin-usage-checker.enabled=false
checker.raw-sql-checker.enabled=false
checker.spring-context-usage.enabled=false