CBPWorkflow :: GetActivityByName: Bitrix method

      
<?php 
//  CBPWorkflow :: GetActivityByName()
//  /dist/bitrix/modules/bizproc/classes/general/workflow.php:307

    
public function GetActivityByName($activityName)
    {
        if (
strlen($activityName) <= 0)
            throw new 
Exception("activityName");

        
$activity null;

        
$this->FillNameActivityMap();

        if (
array_key_exists($activityName$this->activitiesNamesMap))
            
$activity $this->activitiesNamesMap[$activityName];

        return 
$activity;
    }