Community

Reusable/Common Advanced Script Approach Across Multiple ABBYY Vantage Document Skills

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:

  1. Has anyone implemented reusable/common Advanced Script logic successfully in Vantage?
  2. Is there any recommended way to maintain centralized/common scripts instead of copying functions into every document skill?
  3. How are people handling situations where field names differ slightly between document skills?
  4. Has anyone tried a utility/helper-function approach for repetitive table extraction logic?
  5. 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!

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.