CBPAllWorkflowPersister :: RestoreFromSerializedForm: Bitrix method

      
<?php 
//  CBPAllWorkflowPersister :: RestoreFromSerializedForm()
//  /dist/bitrix/modules/bizproc/classes/general/workflowpersister.php:158

    
private function RestoreFromSerializedForm($buffer)
    {
        if (
$this->useGZipCompression)
            
$buffer gzuncompress($buffer);

        if (
strlen($buffer) <= 0)
            throw new 
Exception("EmptyWorkflowInstance");

        
$activity CBPActivity::Load($buffer);
        return 
$activity;
    }