Pending Operation

You can manage pending operations using these methods:

Customer customer = Customer.findById(101);
if (errorHappened) {
	customer.cancelPending();
}
else {
	customer.submitPending();
}