ProcessRequest Class
The ProcessRequest class is the parent class
for the ProcessSubmitRequest and ProcessWorkitemRequest classes. Use the ProcessRequest class to write generic Apex that can
process objects from either class.
Namespace
ProcessRequest Methods
The following are methods for ProcessRequest. All are instance methods.
getComments()
Returns the comments that have been added previously to
the approval request.
Signature
public String getComments()
Return Value
Type: String
getNextApproverIds()
Returns the list of user IDs of user specified as approvers.
Signature
public ID[] getNextApproverIds()
Return Value
Type: ID[]
setComments(comments)
Sets the comments to be added to the approval request.
Signature
public Void setComments(String comments)
Parameters
- comments
- Type: String
Return Value
Type: Void
setNextApproverIds(nextApproverIds)
If the next step in your approval process is another Apex approval process, you specify
exactly one user ID as the next approver. If not, you cannot specify a user ID and this method
must be null. This method sets the ActorId field of the
associated ProcessInstanceWorkItem.
Signature
public Void setNextApproverIds(ID[] nextApproverIds)
Parameters
- nextApproverIds
- Type: ID[]
- Must be a single-entry list.
Return Value
Type: Void