The Approval namespace
provides classes and methods for approval processes.
The following are the classes in the Approval namespace.
LockResult Class
The result of a record lock returned by a System.Approval.lock() method.
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.
ProcessResult Class
After you submit a record for approval, use the ProcessResult class to process the results of an approval process.