Previous Topic: Synchronous Versus Asynchronous OperationsNext Topic: WgnImportConnector Object


Single-pass Processing Versus Deferred Completion

Calls to WgnActiveImportConnector can use single-pass processing or two-pass processing (that is, the caller can enable 'deferred completion'. Deferred completion allows the caller greater control over which events are saved in the CMS database.

For example, smart tags are applied to an e-mail. When the External Agent returns these smart tags to the calling application, the caller uses these smart tags to categorize the e‑mail. If the e-mail is in a category that does not require archiving (such as an Outlook meeting request), the caller can delete the e-mail and signal to the External Agent that the e-mail does not need saving in the CMS database.

Deferred completion is controlled by the allowDeferredCompletion parameter in the ImportObject() and ImportObjectAsync() methods. If deferred completion:

When deferred completion is enabled, the e-mail can be committed synchronously or asynchronously.

Important! The synchronous mode of the commit must match that of the import. So if an e-mail is imported using ImportObject(), it must be committed using Commit(), and if an e-mail is imported using ImportObjectAsync(), it must be committed using CommitAsync().