LockReportSample

This stand-alone sample demonstrates how to log the work object number and user information for locked work objects.

    java LockReportSample 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.

Methods

General descriptions of the LockReportSample methods follow:

main()

The main method uses common techniques for validating and defaulting argument values. If the user does not supply an output filename, main supplies LockReportSample.out. It 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.

When LockReportSample terminates, the main method terminates the session with SessionHelper.logoff. Additional code in the main method manages common cleanup and error handling.

LockReportSample()

The LockReportSample constructor calls QueueHelper and QueueHelper.displayQueueLockStatus to log the lock status of each work object in each queue.