IBM FileNet P8, Version 5.2.1            

Running the API Samples

Before you modify the source, compile and run the API samples as delivered. Doing so ensures that your development system is set up correctly and helps you to gain a basic understanding of workflow operations.

Compile the appropriate samples. For information about the samples supplied, see Process API Samples Overview. Here is the command-line syntax for running the MainSample application after it is compiled:

    MainSample username password server_name:port_number/connectionPoint_name 
        wfDefinition_filename | wfDefinition_filename output_filename
The required parameters are as follows:
The optional parameters are as follows:

As an example, the following command line shows how to run the unmodified samples as SysAdmin:

 
    java -classpath .;%CLASSPATH% MainSample SysAdmin myserver:32771/myConnectionPoint

In this example, the connection point "myConnectionPoint" on the server myserver, port 32771. No workflow definition (*.pep) or output files are specified.

When the MainSample application runs without encountering errors, you receive output that is similar to the following example. (The output is shown in the same command window from which you ran the MainSample application.)

Writing messages to file: MainSample.out
~~ Starting the main sample.
~ Starting SysConfigSample execution. 
~ SysConfigSample execution complete.
~ Starting WFDefinitionSample execution. 
~ WFDefinitionSample execution complete.
~ Starting LaunchSample execution. 
~ LaunchSample execution complete.
~ Starting RosterSample execution. 
~ RosterSample execution complete.
~ Starting StepProcessorSample execution. 
~ StepProcessorSample execution complete.
~ Starting QueueSample execution. 
~ QueueSample execution complete.
~ Starting MilestoneSample execution. 
~ MilestoneSample execution complete.
~ Starting OperationsSample execution. 
~ OperationsSample execution complete.
~ Starting SystemStepSample execution. 
~ Launching Generated Workflow 
~ SystemStepSample execution complete.
~ Starting StepProcessorSample execution. 
~ StepProcessorSample execution complete.
~ Starting ProcessSample execution. 
~ ProcessSample execution complete.
~ Starting StepProcessorSample execution. 
~ StepProcessorSample execution complete.
~ Starting LogSample execution. 
~ LogSample execution complete.
~~ MainSample execution complete.
Note: This output represents the typical console output results for the first time the MainSample application is run. If the MainSample application is run a second time, without modification, you receive notification that states that the required queues exist.

The following files, which are created by running the unmodified samples, are located in the same directory as the MainSample.class file:



Last updated: October 2015
compile_the_samples.htm

© Copyright IBM Corporation 2015.