Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Intelligent Document Capture with Ephesoft, Second Edition

You're reading from   Intelligent Document Capture with Ephesoft, Second Edition Automate the processing of scanned and digital documents by improving accuracy using web-based open and modern intelligent document capture software

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher Packt
ISBN-13 9781783558582
Length 164 pages
Edition 2nd Edition
Arrow right icon
Toc

Scripting


Ephesoft can be configured to execute custom Java code in four places:

  • In the workflow (at specific pre-defined points in Ephesoft's processing of a batch)

  • When fields change in validation

  • When an operator presses a function key

  • Periodically at a configurable time

This code can manipulate the documents, populate field values, integrate with external systems, normalize data, and so forth.

The workflow scripts

The MailroomAutomationTemplate batch class, which we copied to create our custom batch, is configured with hooks to execute your own code in several places. For instance, if you want to perform a custom operation prior to validation, you can edit the following file: BC99/scripts/ScriptExtraction.java.

This file contains the implementation of a class named ScriptExtraction. Whenever Ephesoft's extraction module runs, it will call the execute method of this class:

public class ScriptExtraction implements IJDomScript {
  public Object execute(Document jdomObj, String methodName, String...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime