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