CBPWorkflowTemplateLoader :: FindSetStateActivities: Bitrix method

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

    
private static function FindSetStateActivities($arWorkflowTemplate)
    {
        
$arResult = array();

        if (
$arWorkflowTemplate["Type"] == "SetStateActivity")
            
$arResult[] = $arWorkflowTemplate["Properties"]["TargetStateName"];

        if (
is_array($arWorkflowTemplate["Children"]))
        {
            foreach (
$arWorkflowTemplate["Children"] as $key => $value)
                
$arResult $arResult self::FindSetStateActivities($arWorkflowTemplate["Children"][$key]);
        }

        return 
$arResult;
    }