A ProcessResult object is returned by the process method. You must specify the Approval namespace when creating an instance of this class. For example:
Approval.ProcessResult result = Approval.process(req1);
The following are methods for ProcessResult. All are instance methods.
public String getEntityId()
Type: String
public Database.Error[] getErrors()
Type: Database.Error[]
public String getInstanceId()
Type: String
public String getInstanceStatus()
Type: String
public ID[] getNewWorkitemIds()
Type: ID[]
public Boolean isSuccess()
Type: Boolean