IBM FileNet P8, Version 5.2.1            

LaunchSample

    java LockReportSample username password server_name:port_number/connectionPoint_name 
        wfDefinition_filename | wfDefinition_filename 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 LaunchSample methods follow:

main()

The main method uses common techniques for validating and defaulting argument values. The default values for the log output file and workflow definition file names are LaunchSample.out and Sample.pep, respectively. 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.

LaunchSample()

The LaunchSample constructor defines a workflow, transfers the definition to the system database, creates and comments the Launch step, and dispatches the workflow.

The constructor uses VWWorkflowDefinition.readFromFile to create a workflow definition object from an existing workflow definition (*.pep) file. See the sample WFDefinitionSample class) to create a workflow definition file.

VWSession.transfer is used to transfer the workflow definition, returning a VWTransferResult object. The workflow version string in the VWTransferResult object is passed to VWSession.createWorkflow, and a StepElement object for the launch step is returned. The sample Logger class logs the launch step properties. The launch step is then completed by using VWStepElement.doDispatch.



Last updated: October 2015
launchsample.htm

© Copyright IBM Corporation 2015.