CBPWorkflowTemplateLoader :: CreateActivity: Bitrix method

      
<?php 
//  CBPWorkflowTemplateLoader :: CreateActivity()
//  /dist/bitrix/modules/bizproc/classes/general/workflowtemplateloader.php:345

    
private function CreateActivity($activityCode$activityName)
    {
        if (
CBPActivity::IncludeActivityFile($activityCode))
            return 
CBPActivity::CreateInstance($activityCode$activityName);
        else
            throw new 
Exception('Activity is not found.');
    }