This sample demonstrates how to create a queue, exposed fields, and an index. Run the sample by entering a command similar to the following:
java SysConfigSample username password server_name:port_number/connectionPoint_name output_filename
Refer to the comments in the sample source for further information. The samples are located on the P8 Documentation CD or ESD image in:
ecm_help\developer_help\process_java_api\Developer Files\samples\api
See also Running the API Samples.
General descriptions of the SysConfigSample methods follow:
The main method uses common techniques for validating and defaulting argument values. The default values for the log output file is SysConfigSample.out. Main() constructs and passes VWSession and sample Logger class objects to the constructor. Main() handles the login and logoff for the session with the login() and logoff() methods of the sample SessionHelper class, and provides workflow logging with an instance of the sample Logger class.
The SysConfigSample constructor gets a VWSystemConfiguration object (using VWSession.fetchSystemConfiguration), displays VWSystemConfiguration values (using VWSystemConfiguration.getLoggingState, VWSystemConfiguration.getMaxDBOperations, and VWSystemConfiguration.getMaxInstructions), gets a VWQueueDefinition object of type VWQueue.QUEUE_TYPE_PROCESS (using VWSystemConfiguration.createQueueDefinition), adds one exposed field (using VWQueueDefinition.createFieldDefinition, and adds one index (using VWQueueDefinition.createIndexDefinition. The information is logged using the sample Logger.log, and the configuration changes are committed (as required) using VWSystemConfiguration.commit.