This sample demonstrates how to create and save a workflow definition in a file.
java WFDefinitionSample 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.
General descriptions of the WFDefinitionSample 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 WFDefinitionSample.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.
WFDefinitionSample()
addStep()
validate()
Uses VWStepDefinition.validate to validate the workflow definition.