IBM FileNet P8, Version 5.2.1            

SysConfigSample

This sample demonstrates how to create a queue, exposed fields, and an index.

Run the sample by entering a command similar to the following example:

    java SysConfigSample username password server_name:port_number/connectionPoint_name 
        output_filename

For more information, see the comments in the sample source. The samples are supplied in the Developer samples section of the IBM® FileNet® P8 Platform publication library.

See also Running the API Samples.

Methods

General descriptions of the SysConfigSample methods follow:

main()

The main method uses common techniques for validating and defaulting argument values. The default value 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. It also provides workflow logging with an instance of the sample Logger class.

SysConfigSample()

The SysConfigSample constructor gets a VWSystemConfiguration object (by using VWSession.fetchSystemConfiguration), displays VWSystemConfiguration values (by using VWSystemConfiguration.getLoggingState, VWSystemConfiguration.getMaxDBOperations, and VWSystemConfiguration.getMaxInstructions), gets a VWQueueDefinition object of type VWQueue.QUEUE_TYPE_PROCESS (by using VWSystemConfiguration.createQueueDefinition), adds one exposed field (by using VWQueueDefinition.createFieldDefinition, and adds one index (by using VWQueueDefinition.createIndexDefinition. The information is logged by using the sample Logger.log, and the configuration changes are committed (as required) by using VWSystemConfiguration.commit.



Last updated: October 2015
sysconfigsample.htm

© Copyright IBM Corporation 2015.