Desktop User Guides > Professional > Interview scripting > Quota control > Keeping track of quotas > Quotas in interview review
 
Quotas in interview review
When reviewing interviews, the QuotaEngine replays the original state as it was for the original interview. The Pend function can return the results as they were for the original interview. This ensures that WasPendedList is the same as the original interview. Quota data is rolled-back when an interview is rejected during review. The details are as follows:
1 The quota engine's IsReview setting is set to true. When IsReview is set to true, calls to Pend are not recorded to the complete history, regardless of whether the data has changed.
2 When Pend is initially called, the Quota_CompleteHistory Pend history is loaded against ProjectID, RespondentSerial, and Quota_ID for all related quota cells.
When the Pend history loads successfully for all related quota cells, the WasPended setting is set to true for all quota cells that have a Pend history. Quota cells that have a Pend history are added to the WasPendedList. The returned value is compared to the historical PendResult.
When some of quota cells fail to load the Pend history, this is an indication that data changes are in review. The Pend call is rejected, qrWasPended is not set, and the return value is 0.
Because PendResult is used instead of InstanceCount, quotas that have been reset still function as normal during interview review.
3 When interviews are rejected during interview review, the quota engine rolls back all related quota data for the rejected interview against CompleteHistory.
Quota rejection only applies to completed UNICOM Intelligence Interviewer - Server 7 (and later) interviews. If interviews are completed on versions prior to UNICOM Intelligence Interviewer - Server 7, the rejected quotas do not take effect because the interviews do not have the corresponding quota complete history.
4 The Complete and Rollback functions are ignored during interview review.
See also
How the quota system works