CBPWorkflowStatus::Out: Bitrix method

      
<?php 
//  CBPWorkflowStatus :: Out()
//  /dist/bitrix/modules/bizproc/classes/general/constants.php:87

    
public static function Out($v)
    {
        
$result "";

        switch (
$v)
        {
            case 
self::Created:
                
$result "Created";
                break;
            case 
self::Running:
                
$result "Running";
                break;
            case 
self::Completed:
                
$result "Completed";
                break;
            case 
self::Suspended:
                
$result "Suspended";
                break;
            case 
self::Terminated:
                
$result "Terminated";
                break;
            default:
                throw new 
Exception("UnknownWorkflowStatus");
        }

        return 
$result;
    }