Before you can update workflow data, you need to retrieve the Step Elements or Work Objects from a queue. See Querying for Step Elements or Work Objects for this information.
Step Element parameters are defined by using the Parameter tab in Process Designer (see Process Designer), and have the following characteristics:
Use VWStepElement.getParameterValue() and VWStepElement.setParameterValue() to retrieve and update parameter values. For more information, see VWStepElement.
Use VWWorkObject.getFieldValue(), VWWorkObject.hasFieldName(), and VWWorkObject.setFieldValue() to retrieve work objects from a queue, extract, and update a data field value. For more information, see VWWorkObject.
You can specify comments by using either VWStepElement.setComment(), or the VWWorkObject F_Comment field for VWWorkObject.hasFieldValue() and VWWorkObject.setFieldValue().