The client application is responsible for implementing an OnAppSaveModifiedActiveDocument event handler for some of the supported FileNet Application Integration commands. This event handler method should save the currently active, modified document.
HRESULT __stdcall CEventHandler::OnAppSaveModifiedActiveDocument()
{
// Save the current document.
m_pDocument->SaveDocument();
return S_OK;
}