This helper class provides methods to get operation definitions (VWOperationDefinition objects) and print operation definition information.
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 OperationsHelper methods follow:
The OperationsHelper constructor initializes local variables to point to its VWSession and sample Logger class objects arguments.
Retrieves the definition of an operation. VWQueue.fetchQueueDefinition is used to get the VWQueueDefinition object holding the definition of the specified queue (argument to fetchQueueDefinition), then VWQueueDefinition.getOperation is used to get the VWOperationDefinition object.
Logs VWOperationDefinition object information using VWOperationDefinition.getName and VWOperationDefinition.getDescription to pass the operation definition information to the sample Logger.log, and prints the VWOperationDefinition parameter information using the local printOperationParameters method.
Logs the parameter information of the VWOperationDefinition object specified as the argument (using VWOperationDefinition.getParameterDefinitions to get the array of VWParameterDefinition objects. VWParameterDefinition.getName, VWParameterDefinition.getDataType, and VWParameterDefinition.getValue are used to pass the parameter information to the sample Logger.log to log this information.