When using the OLSA Asset Integration Service for catalog synchronization, adhere to the following coding practice to handle specific exceptional circumstances.
The following example illustrates at a high level how you should handle the OLSA Asset Integration Service Initiate-Poll-Acknowledge cycle by your LMS:
handle = AI_InitiateAssetMetaData (mode=all or delta)
while (true) {
Sleep for N minutes
AI_PollForAssetMetadata(handle)
If (url-returned) {
break;
}
}
if (url_returned) {
Retrieve zip file via URL
// course-processing-loop
while (there-are-courses-to-process-in-the-zip-file) {
// See the Recommendation below for what to put into this loop
}
AI_AcknowledgeAssetMetadata(handle)
}