Kofax Transformation Module is one very powerful product once you learn some of its secrets. In this installment I plan to show you two of KTM’s abilities to modify the out of the box functions, Validation Design and Scripting. Screenshot The scripting language and class object models of KTM allow you to modify how Extraction works and also how Validation works. In the case of extraction, out of the box KTM does not recognize negative amounts as in the case of a Credit Memo. In order to allow KTM to recognize negative amounts requires the use of a script function. This script is listed in the HELP documentation and is simple to add. It performs the original function of validating that what was extracted from the invoice is indeed an amount and it also validates the amount if the negative sign is present. Another example is during extraction, an amount is not considered valid if it consists of just a decimal point followed by 2 digits, such as “.75”. A lot of invoices are printed in just such a fashion if the amounts are only cents and no dollars are involved. A script of only one or two lines of code is then used to force KTM to recognize the value by adding a zero in front of the decimal point to form the amount of “0.75”. In this manner scripts can be used to add additional validation of the extracted values and to modify the extracted values if necessary. This also applies to field values that are not extracted as we will see in the discussion of Validation. The Validation screen is what is presented to the user to validate what was extracted from the invoice with the actual invoice image presented.
Originally posted here:
Kofax KTM is a Powerhouse Product

