Add-In Sample Application

The Add-In sample is a simple MFC application that demonstrates how to use the ExpressAddin to integrate a third-party application with the FileNet Application Integration infrastructure. The sample presents a GUI similar to that implemented by the FileNet Office or Outlook integrations. The user selects a menu command, such as File > Open Document > Select Item... or Insert > Insert Hyperlink..., and the Workplace Application Integration Login dialog is displayed. Once the user logs in, the Workplace GUI corresponding to the selected operation is displayed and the user is guided through the operation by Workplace. After execution of the command has completed, control is transferred back to the sample application and the Application Integration Add-In infrastructure.

In order to support this behavior, the sample makes calls to the ExpressAddin interface methods to create the ExpressAddin component, execute commands requested by the user, and log the user off the session. Events are handled through the use of an event sink which traps events fired from the infrastructure and routes them to implementations of ExpressAddin Events interface event handler methods. Both the event sink, as well as basic handlers for all supported events are implemented by the Add-In sample application. The basic event handlers override the stock behavior embedded in the Application Integration infrastructure and send information back to the ExpressAddin component as required.

The following sections describe how to work with the Add-In sample application: