Approval Mechanism and using it programmatically - imona/tutorial GitHub Wiki
Every entity has the following two fields regarding the record's approval status; current.waitingforapproval, current.apprvd
If both values are null, it means record has not been saved yet
After record is saved; If there is no approval definition on the entity, records' apprvd value will be true, waitingforapproval will be false
If there is approval definition on an entity;
if the record has been submitted for approval, current.waitingforapproval will be true
if the record has been approved, current.apprvd will be true, current.waitingforapproval will be false
if the record is rejected, both values will be false