Hi Everyone,
I am working on an ABBYY Vantage Advanced Designer implementation and wanted to check if anyone has implemented a reusable/common scripting approach across multiple document skills.
Currently, we have repetitive Advanced Script logic being used in several document skills, especially around table/repeating group processing and field normalization. We are exploring whether we can create reusable/common JavaScript functions and call them from different document skills instead of duplicating the same code everywhere.
Example scenario:
- Read values from extracted fields
- Pass those values into a common function
- Perform shared logic/validation/transformation
- Return processed result back to the document skill
Something like:
function normalizeCarrier(value1, value2) {
// common reusable logic
return result;
}
Then from each document skill:
var result = normalizeCarrier(field1, field2);
A few questions:
- Has anyone implemented reusable/common Advanced Script logic successfully in Vantage?
- Is there any recommended way to maintain centralized/common scripts instead of copying functions into every document skill?
- How are people handling situations where field names differ slightly between document skills?
- Has anyone tried a utility/helper-function approach for repetitive table extraction logic?
- Are there any limitations or best practices around modular scripting in Advanced Designer?
We are currently considering:
- Generic reusable helper functions
- Wrapper logic per document skill
- Conditional handling based on document/vendor type
Would appreciate any guidance, architecture suggestions, or examples from others who have implemented something similar.
Thanks!
Comments
0 comments
Please sign in to leave a comment.