This helper class provides methods to assist with adding steps to workflows and validating workflows.
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 SystemStepHelper methods follow:
SystemStepHelper()
The SystemStepHelper constructor initializes local variables to point to its VWSession and sample Logger class objects arguments.
addCompoundStep()
Creates a workflow step by passing the specified step name argument to VWMapDefinition.createCompoundStep, and returning a VWCompoundStepDefinition object. VWCompoundStepDefinition.getStepId is then used to get the ID of the compound step definition.
addStep()
Creates a workflow step by passing the specified step name argument to VWMapDefinition.createStep to get the VWStepDefinition object, by using VWStepDefinition.createParameter to create parameters for the new step definition, assigning the queue name argument (specified for this method) to the step definition by using VWStepDefinition.setQueueName, and storing the step description and map location by using VWStepDefinition.setDescription and VWStepDefinition.setLocation.
validate()
Validates the workflow definition that is specified as an argument by using VWWorkflowDefinition.validate. Any errors are returned as an array of VWValidationError objects. The sample Logger.log is used to log the errors.