This chapter provides an introduction to developing scripts for Oracle WebCenter Capture.
A script is a custom piece of code consumed by the Capture client or batch processor (Import or Recognition) that allows you to customize functionality beyond existing configuration settings. For example, you might incorporate a script to change the first letter of a name to uppercase or to use a proprietary calculation to validate an account number used in a transaction.
Below are the main steps for developing and incorporating scripts in Capture components:
For the component, write the JavaScript, using the events, classes, and information provided in the component's chapter:
Refer to Chapter 2, "Capture Scripting Samples" for reference.
On the Advanced tab of a selected workspace in the WebCenter Capture Workspace Console, a workspace manager adds the script, identifying its component type and loading the script file.
In a client profile or an import or recognition processor job, the workspace manager selects the script for use. Note that workspace managers can incorporate multiple client scripts in a client profile and specify the order in which they are executed.
For scripting, Capture uses the JavaScript script engine included with the Java Runtime Environment. Refer to the Oracle Java documentation for more information.
Scripts can be incorporated in the following Capture components, as referenced in the guide Oracle Fusion Middleware Managing Oracle WebCenter Capture:
Client
Client Scripts are JavaScript modules that enable you to customize the behavior of certain client events. To use one or more scripts in a client profile, a workspace manager selects and orders them in an extension profile, as described in the guide Oracle Fusion Middleware Managing Oracle WebCenter Capture.
Import Processor
Import Processor scripts allow you to customize the behavior of certain import job events.
Recognition Processor
Recognition Processor scripts allow you to customize the behavior of certain recognition job events.