current.state = 'rejected';if(!JSUtil.nil(current.comments))current.update();else{gs.addErrorMessage(gs.getMessage("Comments are required when rejecting an approval"));current.state = 'requested';current.setAbortAction(true);}