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.
Note: Remember to lock the retrieved work item (for example, using VWStepElement.doLock()
Updates to workflow data include updating VWStepElement parameters (such as, modifying the data fields, attachments, and workflow groups that are used as parameters for this workflow step), updating VWWorkObject objects (extracting and updating data field values), or specifying comments.
Step Element parameters are defined using the Parameter tab in the Process Designer (see Help for Process Designer), and have the following characteristics:
Use VWStepElement.getParameterValue() and VWStepElement.setParameterValue() to retrieve and update parameter values. See VWStepElement for more information.
Use VWWorkObject.getFieldValue(), VWWorkObject.hasFieldName(), and VWWorkObject.setFieldValue() to retrieve work objects from a queue, extract, and update a data field value. See VWWorkObject for more information.
You can specify comments using either VWStepElement.setComment(), or the VWWorkObject F_Comment field for VWWorkObject.hasFieldValue() and VWWorkObject.setFieldName().