This chapter provides detailed descriptions of custom WLST commands for Oracle WebCenter Enterprise Capture, including command syntax, arguments and command examples.
The following sections describe the custom WLST commands for Oracle WebCenter Enterprise Capture. These commands enable you to access and modify various configuration parameters for Oracle WebCenter Enterprise Capture from the command line. Topics include:
To display all the supported Capture commands that can be invoked from WLST, enter the following command at the WLST prompt:
help('capture')
For information about Enterprise Capture workspace console use, see Oracle Fusion Middleware Managing Oracle WebCenter Enterprise Capture.
Note:
To use the Oracle WebCenter Enterprise Capture custom commands, you must invoke the WLST script from the Oracle Common home in which the component has been installed. Either connect to the Oracle WebLogic Server managed server (default port 16400) on which the Oracle WebCenter Enterprise Capture application is deployed, or connect to the Oracle WebLogic Server administration server and change your location to domainRuntime by executing the command:domainRuntime()
See "Using Custom WLST Commands" in Oracle Fusion Middleware Administrator's Guide.
WLST Oracle WebCenter Enterprise Capture commands are covered in the following category:
Use the commands in Table 20-2 to configure Oracle WebCenter Enterprise Capture.
Table 20-2 WLST Server Oracle WebCenter Enterprise Capture Configuration Commands
Use this command... | To... | Use with WLST... |
---|---|---|
List all of the Capture workspaces to which the administrator or workspace manager has access. |
Online |
|
List all of the batches within a specified workspace. |
Online |
|
Export a batch including images and metadata to a ZIP file. |
Online |
|
Export an entire Capture workspace including documents, metadata, scripts, profiles and jobs to an XML file. |
Online |
|
Import a workspace from a XML file generated with the |
Online |
|
Delete the batch lock record for the specified batch. |
Online |
|
Display the list of locked batches. |
Online |
|
Display the list of all Enterprise Capture configuration attributes with their values. |
Online |
|
Fetch the value of the attribute specified as an argument. |
Online |
|
Set the value of the Enterprise Capture attribute to the provided value. |
Online |
|
Scan the client bundle directory for updated bundles. |
Online |
|
Delete an existing client bundle. |
Online |
|
Set the value of a property defined in a Capture object which could be a client profile, processor job, or a commit profile. |
Online |
|
Print the value of a specific property of a Capture object which could be a client profile, processor job, or a commit profile. |
Online |
|
Set the user name and password associated with a Capture object (client profile, processor job, or commit profile). |
Online |
|
Update a script within a workspace. |
Online |
Use with WLST: Online.
Use with WLST: Online.
Lists all batches for the workspace specified by its ID. Each batch listed has five columns (displayed in this order): Batch ID, Batch Name, Created By (user), Last Updated By (user), and Last Modified (date).
Use with WLST: Online.
Exports a batch including images and metadata to a ZIP file containing an XML file and the batch item files.
exportBatch(BATCH_ID,'FILE_NAME')
Argument | Definition |
---|---|
BATCH_ID |
ID number for a batch. Can be optionally specified within single quotes. For example, both 3 and '3' are valid arguments for a batch with ID 3. |
FILE_NAME |
Name of the ZIP file to which the batch will be exported. The file name must be specified along with its complete path. |
Note:
The path should be separated by forward slashes "/" regardless of the operating system.Use with WLST: Online.
Exports an entire workspace including documents, metadata, scripts, profiles and jobs to an XML file.
exportWorkspace(WORKSPACE_ID,'FILE_NAME')
Argument | Definition |
---|---|
WORKSPACE_ID |
ID number for a workspace. Can be optionally specified within single quotes. For example, both 3 and '3' are valid arguments for a workspace with ID 3. |
FILE_NAME |
Name of the file to which the workspace will be exported. The file name must be specified along with its complete path. |
Note:
The path should be separated by forward slashes "/" regardless of the operating system.Use with WLST: Online.
Imports a workspace from a XML file generated with the exportWorkspace
command. The workspace being imported must not exist in the Oracle WebCenter Enterprise Capture database.
Use with WLST: Online.
Deletes the batch lock record for the specified batch. The batch will be put into a READY state so that it can be opened by the client.
Use with WLST: Online.
Displays the list of locked batches. Each batch listed has six columns (displayed in this order): Workspace ID, Batch ID, Batch Name, Created By (user), Workstation (name/IP address), Last Modified (date).
Use with WLST: Online.
Use with WLST: Online.
Fetches the value of the attribute specified as an argument. Use the listCaptureConfig
command to list possible attribute names.
Use with WLST: Online.
Use with WLST: Online.
Use with WLST: Online.
Use with WLST: Online.
Sets the value of a property defined in a Capture Object, which could be a client profile, processor job, or a commit profile.
For information on the properties that can be set for each Capture object, see Appendix A.
setObjectProperty('<WORKSPACE_NAME>','<CLASS_NAME>','<OBJECT_IDENTIFIER>','<PROPERTY_ASSIGNMENT_STRING>')
This command requires the following parameters:
Argument | Definition |
---|---|
WORKSPACE_NAME |
The name of the Capture workspace that contains the objects that will be modified. If the calling user has rights to more than one workspace with the specified name, the first workspace found will be used. |
CLASS_NAME |
The name of the class that defines the client profile, processor job, or commit profile. |
OBJECT_IDENTIFIER |
A key/value pair consisting of the name of a property that can be used to locate the object and the expected value of that property. |
PROPERTY_ASSIGNMENT_STRING |
The name and value of the property to update, separated by an equal sign. |
The following list provides some additional points to note when you use the setObjectProperty command:
Modifiable objects expose their properties using the standard JavaBean getter/setter pattern. In the example below it is assumed the methods getProfileDesc
and setProfileDesc
exist in the Profile class.
The value being assigned to the property should be compatible with the property's data type. If a value is not compatible with the property's data type, an exception will occur.
The following are valid class names:
oracle.oddc.data.Profile
(Capture object being modified: Client Profile)
oracle.odc.recognition.RecognitionJob
(Capture object being modified: Recognition Processor Job)
oracle.odc.importprocessor.ImportJob
(Capture object being modified: Import Processor Job)
oracle.odc.entity.CommitProfileEntity
(Capture object being modified: Commit Profile)
oracle.odc.docconverter.DocConverterJob
(Capture object being modified: Document Conversion Job)
In cases where a value needs to be set on an object nested within a profile or job, ”dot” notation can be used to access the nested property: propertyName.propertyName=value
.
Multiple levels of nesting are supported. The following could be used to modify the barcodeName property of a Recognition Processor job's docTypeBarcode property: docTypeBarcode.barcodeName=value
.
To support accessing a property of an object contained in a collection, the following ”angle bracket” notation can be used: propertyName<identifierPropertyName=value>.propertyName=value
.
The value between the angle brackets will be used to locate the object to modify within the collection. The identifierPropertyName
is the name of a property that can be used to identify the object in the collection and value is the value that property should contain to be considered a match. For example: barcodes<barcodeName=barcode 1>.barcodeName=barcode 2.
The following is an example of <Object Identifier
> that would apply to client profiles:
profileName=Commit to CS
The following is an example of <Property Assignment String
> for updating the property profileDesc
for a client profile:
profileDesc=Test Profile Desc
The following is an example of setting the property <serverURL
> associated with a WebCenter Content commit profile named Commit to CS
:
setObjectProperty('TEST_WORKSPACE','corporate.odc.entity.CommitProfileEntity','profileName=Commit to CS','serverURL=http://myhost.example.com:16200/cs/idcplg/')
Use with WLST: Online.
Prints the value of a specific property of a Capture Object (client profile, processor job, or commit profile).
getObjectProperty('<WORKSPACE_NAME>','<CLASS_NAME>','<OBJECT_IDENTIFIER>','<PROPERTY_NAME>')
This method requires the following parameters:
Argument | Definition |
---|---|
WORKSPACE_NAME |
The name of the Capture workspace that contains the object that will be modified. If the calling user has rights to more than one workspace with the specified name, the first workspace found will be used. |
CLASS_NAME |
The name of the class that defines the client profile, processor job or commit profile. |
OBJECT_IDENTIFIER |
A key/value pair consisting of the name of a property that can be used to locate the object and the expected value of that property. |
PROPERTY_NAME |
The name of the property to access. The ”dot” notation and ”angle bracket” notation described in setObjectProperty can be used to isolate the property to access. |
Note:
The backing MBean method for this command can be used in automated tests to validate if the changes made with thesetObjectProperty
command have taken effect.The following are valid class names:
oracle.oddc.data.Profile oracle.odc.recognition.RecognitionJob oracle.odc.importprocessor.ImportJob oracle.odc.entity.CommitProfileEntity oracle.odc.docconverter.DocConverterJob
The following is an example of <Object Identifier
> that would apply to import jobs:
jobName=Import Email
The following is an example for retrieving the value of the property <serverName
> associated with an email import job.
getObjectProperty('TEST-WORKSPACE','oracle.odc.importprocessor.ImportJob','jobName=Import Email','serverName')
Use with WLST: Online.
It is used to set the user name and password associated with a profile or job.
setObjectCredentials('<WORKSPACE_NAME>','<CLASS_NAME>','<OBJECT_IDENTIFIER>','<USER_NAME>','<PASSWORD>')
This method requires the following parameters:
Argument | Definition |
---|---|
WORKSPACE_NAME |
The name of the Capture workspace that contains the credential that will be modified. If the calling user has rights to more than one workspace with the specified name, the first workspace found will be used. |
CLASS_NAME |
The name of the class that defines the profile or the job. |
OBJECT_IDENTIFIER |
A key/value pair consisting of the property name of the object to modify and the expected value. |
USER_NAME |
The user name to assign to the object's credential. |
PASSWORD |
The password to assign to the object's credential. |
Valid class names include the following:
oracle.odc.importprocessor.ImportJob oracle.odc.entity.CommitProfileEntity
The following is an example for setting credentials associated with an Email Import Job:
setObjectCredentials('TEST-WORKSPACE','oracle.odc.importprocessor.ImportJob','jobName=import Email','[email protected]','welcome123')
The following is an example for setting credentials associated with a WebCenter Imaging commit profile:
setObjectCredentials('TEST-WORKSPACE','oracle.odc.entity.CommitProfileEntity','profileName=commit to Imaging','admin','welcome123')
Use with WLST: Online.
updateScript('<WORKSPACE_NAME>','<SCRIPT_NAME>','<SCRIPT_FILE>')
This command requires the following parameters:
Argument | Definition |
---|---|
WORKSPACE_NAME |
The name of the workspace that contains the script. The name should be used to lookup the unique identifier of the workspace. If the name is not found, an error message is displayed. |
SCRIPT_NAME |
The name of the script to update. If the script cannot be found, an error message is displayed. |
SCRIPT_FILE |
The absolute path to the script file that should be updated. The script should be updated with the contents of this file. |