CBPWorkflowTemplateLoader::&FindActivityByName: Bitrix method

      
<?php 
//  CBPWorkflowTemplateLoader :: &FindActivityByName()
//  /dist/bitrix/modules/bizproc/classes/general/workflowtemplateloader.php:725

    
public static function &FindActivityByName(&$arWorkflowTemplate$activityName)
    {
        foreach (
$arWorkflowTemplate as $key => $value)
        {
            if (
$value["Name"] == $activityName)
                return 
$arWorkflowTemplate[$key];

            if (
is_array($value["Children"]))
            {
                if (
$res = &self::FindActivityByName($arWorkflowTemplate[$key]["Children"], $activityName))
                    return 
$res;
            }
        }
        return 
null;
    }