Runtime::writeAnalytics: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Engine\Runtime :: writeAnalytics()
//  /dist/bitrix/modules/bizproc/lib/automation/engine/runtime.php:192

    
private function writeAnalytics($documentComplexId$documentStatus$trigger)
    {
        
$analytics = \CBPRuntime::getRuntime(true)->getAnalyticsService();

        if (
$analytics && $analytics->isEnabled())
        {
            
$analytics->write($documentComplexId'automation_run'$documentStatus);

            if (
$trigger)
            {
                
$analytics->write($documentComplexId'trigger_applied'$trigger['CODE']);
            }
        }
    }