CBPDocument::MergeDocuments: Bitrix method

      
<?php 
//  CBPDocument :: MergeDocuments()
//  /dist/bitrix/modules/bizproc/classes/general/document.php:131

    
public static function MergeDocuments($firstDocumentId$secondDocumentId)
    {
        
CBPStateService::MergeStates($firstDocumentId$secondDocumentId);
        
WorkflowInstanceTable::mergeByDocument($firstDocumentId$secondDocumentId);
        
CBPHistoryService::MergeHistory($firstDocumentId$secondDocumentId);
    }