Kofax Communications Manager Core Scripting Language Developer's Guide

1y ago
13 Views
2 Downloads
822.56 KB
140 Pages
Last View : Today
Last Download : 3m ago
Upload by : Hayden Brunner
Transcription

Kofax Communications Manager Core Scripting Language Developer's Guide Version: 5.3.0 Date: 2019-05-28

2019 Kofax. All rights reserved. Kofax is a trademark of Kofax, Inc., registered in the U.S. and/or other countries. All other trademarks are the property of their respective owners. No part of this publication may be reproduced, stored, or transmitted in any form without the prior written permission of Kofax.

Table of Contents Preface.8 Related documentation.8 Getting help with Kofax products. 9 Chapter 1: Introduction. 11 Syntax and conventions of the Core scripting language. 11 Script example: RunMdl script. 11 Script example: RunDocumentPackTemplate script.12 Layout of the RunMdl and RunDocumentPackTemplate scripts. 14 Rules for the syntax. 14 How to structure your scripts. 15 Start a new Service. 16 Modify file names and file paths. 18 Send email from a script. 19 KCM Core sessions.23 KCM Document Packs. 26 KCM Core exit point scripts. 28 Chapter 2: Parameters, variables, constants, files, and expressions. 31 Parameters.31 Scripts as commands: passing parameters. 32 Map job request parameters to script parameters. 32 Variables. 33 Assign a value to a variable.34 Variable scope. 35 Constants. 35 Constants scope. 36 Global constants. 36 Internal constants.36 Location constants. 40 Temporary files. 40 Expressions.40 Basic expressions. 40 Operations in expressions. 41 Comments.42 Chapter 3: Commands.44 3

Kofax Communications Manager Core Scripting Language Developer's Guide Scripts as commands. 44 Examples of script components. 44 Removed support. 44 AttachFilesToPDF. 45 ChangeBins.46 CleanupSession. 47 CloneSession. 47 CloseDocumentPack.48 ConcatPDF.48 Global settings. 50 ConvertCodepage. 50 Code page location search order.51 ConvertDocument. 54 Get a list of available formats and their numbers. 56 Copy.56 CopyDocumentPack. 56 CopyPDF.57 CreateDirectory. 59 CreateDocumentPack. 60 CreatePath. 60 CreateSession.61 Delete.61 DistributeDocumentPackToOutputManagement.62 DocToPDF.63 Microsoft Word 2003 compatibility mode. 67 Global settings. 68 ExpireSessions. 70 ExportDocToPDF. 70 Global defaults. 72 ExportDocToXPS. 72 Global defaults. 74 FTP. 74 InsertDocumentPack.75 IterateDocumentPack.76 ITPError.77 ITPErrorReset. 78 ITPRun. 79 LogEvent. 83 4

Kofax Communications Manager Core Scripting Language Developer's Guide Lpr. 84 Mail.85 Error conditions.86 MergePDF.87 Global settings. 89 Move. 89 OnError. 89 PrintDocument. 90 Progress.92 PStoPDF. 92 ReceiveFile. 93 RemoveDirectory. 94 RepositoryImportProject.94 RepositoryExportProject. 95 RestoreSession.96 RetrieveRepositoryObject. 96 RunCommand. 99 RunMacro.100 SaveDocumentPack.101 SaveSession. 101 SecurePDF.102 Global settings. 105 SendFile. 105 SetSessionParameter. 106 SetTimeOut. 107 Shutdown. 107 SimpleMail.108 Error conditions.109 SpoolFile. 109 StartProgram.109 StopAllDMs. 110 SubmitMaitenanceJob.110 Temporary. 111 ThrowError. 111 [@*USER] prefix. 111 Unzip. 112 Wait. 112 WriteFile. 113 5

Kofax Communications Manager Core Scripting Language Developer's Guide Zip. 113 Chapter 4: Functions. 114 directory exists (x).114 document metadata (k).114 exchange data (k, v, t).115 file exists (x).115 file format (x).115 get cm setting (x). 116 get ini setting (f, s, k).116 get sessionparameter (p).117 set sessionparameter (p, v).117 get document from pack (s, c, t, d). 118 get slots from pack (c). 119 get channels from pack (s). 119 hex (x).120 index (x, s).120 rindex (x, s).120 itp parameter (k). 121 length (x).121 number (x). 121 text (x).122 replace (x, s, t). 122 rsubstring (x, s, n). 122 substring (x, s, n). 123 template property (k).124 toupper (s). 124 tolower (s). 125 Chapter 5: Conditional statements and iterations. 126 If.Then.Fi. 126 For. .To.Step.Do.Od. 127 ForEach.In.Do.Od. 128 ForEach.File.Do.Od. 129 ForEach.Folder.Do.Od. 130 While. 131 Break.132 Return. 132 Chapter 6: External tools. 133 ITPWinMon. 133 6

Kofax Communications Manager Core Scripting Language Developer's Guide SetReadOnly.vbs. 133 ChangeBins tool. 134 ChangeBins configuration.135 7

Preface This guide provides detailed information about the Kofax Communications Manager Core scripting language. Related documentation 1 The documentation set for Kofax Communications Manager is available here: 0-1h4cs6680a/CCM.htm In addition to this guide, the documentation set includes the following items: Kofax Communications Manager Release Notes Contains late-breaking details and other information that is not available in your other Kofax Communications Manager documentation. Kofax Communications Manager Core Developer's Guide Provides a general overview and integration information for KCM Core. Kofax Communications Manager Getting Started Guide Describes how to use Contract Manager to manage instances of Kofax Communications Manager. Help for Kofax Communications Manager Designer Contains general information and instructions on using Kofax Communications Manager Designer, which is an authoring tool and content management system for Kofax Communications Manager. Kofax Communications Manager Repository Administrator's Guide Describes administrative and management tasks in Kofax Communications Manager Repository and Kofax Communications Manager Designer for Windows. Kofax Communications Manager Repository User's Guide Includes user instructions for Kofax Communications Manager Repository and Kofax Communications Manager Designer for Windows. Kofax Communications Manager Repository Developer's Guide Describes various features and APIs to integrate with Kofax Communications Manager Repository and Kofax Communications Manager Designer for Windows. 1 You must be connected to the Internet to access the full documentation set online. For access without an Internet connection, see "Offline documentation" in the Installation Guide. 8

Kofax Communications Manager Core Scripting Language Developer's Guide Kofax Communications Manager Template Scripting Language Developer's Guide Describes the KCM Template Script used in Master Templates. Kofax Communications Manager API Guide Describes Contract Manager, which is the main entry point to Kofax Communications Manager. Kofax Communications Manager ComposerUI for HTML5 JavaScript API Web Developer's Guide Describes integration of ComposerUI for HTML5 into an application, using its JavaScript API. Kofax Communications Manager Batch & Output Management Getting Started Guide Describes how to start working with Batch & Output Management. Kofax Communications Manager Batch & Output Management Developer's Guide Describes the Batch & Output Management scripting language used in KCM Studio related scripts. Kofax Communications Manager DID Developer's Guide Provides information on the Database Interface Definitions (referred to as DIDs), which is an alternative method retrieve data from a database and send it to Kofax Communications Manager. Kofax Communications Manager ComposerUI for ASP.NET and J2EE Customization Guide Describes the customization options for KCM ComposerUI for ASP.NET and J2EE. Kofax Communications Manager ComposerUI for ASP.NET Developer's Guide Describes the structure and configuration of KCM ComposerUI for ASP.NET. Kofax Communications Manager ComposerUI for J2EE Developer's Guide Describes JSP pages and lists custom tugs defined by KCM ComposerUI for J2EE. Getting help with Kofax products The Kofax Knowledge Base repository contains articles that are updated on a regular basis to keep you informed about Kofax products. We encourage you to use the Knowledge Base to obtain answers to your product questions. To access the Kofax Knowledge Base, go to the Kofax website and select Support on the home page. Note The Kofax Knowledge Base is optimized for use with Google Chrome, Mozilla Firefox or Microsoft Edge. The Kofax Knowledge Base provides: Powerful search capabilities to help you quickly locate the information you need. Type your search terms or phrase into the Search box, and then click the search icon. 9

Kofax Communications Manager Core Scripting Language Developer's Guide Product information, configuration details and documentation, including release news. Scroll through the Kofax Knowledge Base home page to locate a product family. Then click a product family name to view a list of related articles. Please note that some product families require a valid Kofax Portal login to view related articles. Access to the Kofax Customer Portal (for eligible customers). Click the Customer Support link at the top of the page, and then click Log in to the Customer Portal. Access to the Kofax Partner Portal (for eligible partners). Click the Partner Support link at the top of the page, and then click Log in to the Partner Portal. Access to Kofax support commitments, lifecycle policies, electronic fulfillment details, and self-service tools. Scroll to the General Support section, click Support Details, and then select the appropriate tab. 10

Chapter 1 Introduction This chapter describes the syntax and set expressions of the Core scripting language as they are used in KCM Core. Syntax and conventions of the Core scripting language Script example: RunMdl script To understand how KCM Core scripts are organized, you can view an actual KCM Core script call installed with KCM Core. 1. Start KCM Core Administrator. 2. In the tree view, click the Services node and select the Services tab. 3. Click RunMdl and click Edit script on the right. The Script Editor window appears. The script is started with a comment containing a short description of the script. /* * RunMdl script. This script is an example that provides * default behavior. Use "as is" or adapt to your needs. */ The parameter block defines all expected parameters. It specifies defaults for all parameters except Model. Parameters that have default values may be omitted when the script is called. Parameter Parameter Parameter Parameter Parameter Parameter Parameter Parameter Text Text Text Text Text Text Text Text Model; Result "result.doc"; Keys ""; Extras ""; Environment ""; MetaData ""; DBB XMLInput ""; DBB XMLOutput ""; KCM needs to store the result document of the template run in a temporary result file before sending it away. In order to avoid conflicts, the names of these temporary files must be unique. In the following code, this is done by including uniqueid in the file name. uniqueid is a so-called local constant, which provides a unique value every time it is called. For more information on the local constant, see Constants. ********** * Construct a unique filename for the result in the temp dir. * We declare the file to be temporary! ********/ 11

Kofax Communications Manager Core Scripting Language Developer's Guide Const Text ResultFile ("result" uniqueid)[TempDir, "doc"]; Temporary File (ResultFile); There is a script command called ITPRun that you can use to run templates. ITPRun Model (Model) Result (ResultFile) Keys (Keys) Extras (Extras) Environment (Environment) MetaData (MetaData) DBB XMLInput (DBB XMLInput) DBB XMLOutput (DBB XMLOutput); You can use the SendFile command to send files to the client application that calls a KCM Core Service. In this case, the result document of the template run is sent to the client. ********** * Return the result document. ********/ SendFile Src (ResultFile) Dest (Result); 4. Close the Script Editor and be sure not to save any possible changes that you may have made while viewing the script. Script example: RunDocumentPack

This chapter describes the syntax and set expressions of the Core scripting language as they are used in KCM Core. Syntax and conventions of the Core scripting language Script example: RunMdl script To understand how KCM Core scripts are organized, you can view an actual KCM Core script call installed with KCM Core. 1. Start KCM Core .

Related Documents:

Getting help with Kofax products The Kofax Knowledge Base repository contains articles that are updated on a regular basis to keep you informed about Kofax products. We encourage you to use the Knowledge Base to obtain answers to your product questions. To access the Kofax Knowledge Base, go to the Kofax website and select Support on the home page.

Getting help with Kofax products The Kofax Knowledge Base repository contains articles that are updated on a regular basis to keep you informed about Kofax products. We encourage you to use the Knowledge Base to obtain answers to your product questions. To access the Kofax Knowledge Base, go to the Kofax website and select Support on the home page.

Kofax Communications Manager ComposerUI for ASP.NET and J2EE Customization Guide Describes the customization options for KCM ComposerUI for ASP.NET and J2EE. Kofax Communications Manager DID Developer's Guide Provides information on the Database Interface

The Kofax Capture Developer’s Guide provides information for customizing your Kofax Capture installation. This guide includes instructions for the following: Writing custom validation, recognition, and field scripts Creating and registering custom extensions such as custom modules, custom panels, workflow agents, and setup OCXs Using the Kofax Capture API Library to create the custom .

SOLUTION COMPARISON 3 Kofax Power PDF Standard Kofax Power PDF Advanced Kofax Power PDF Standard for Mac Sign and send PDFs for signature with integrated DocuSign actions Microsoft Crypto API/3rd-party digital signature compatibility Unique to Windows Add, manage, view and navigate document digital signatures

RPA User's Guide), Kofax RPA Desktop Automation Service Guide, and Kofax RPA Getting Started with Document Transformation Guide. After you install the Kofax RPA product, extract the contents of the documentation .zip files for the languages you require. The .zip file for each language contains the following folders: API Best Practices

Kofax Insight Documentation: The product documentation for Kofax Insight 6.0.0 is hosted online: . Click Account Management and log in. Access to support tools. Click Tools and select the tool to use. Information about the support commitment for Kofax products.

American Gear Manufacturers Association franklin@agma.org June 15, 2012. at Happened in the 2011 US Gear Market? mand for gears was up sharply in the US because of the mendous investment in “traditional” capital equipment. en though gear demand was up 28%, domestic shipments rose only %. The gap was filled by record gear imports (in terms of levels rowth), a 33% rise. ports were due to a .