WriteToTrackingService: Bitrix method

      
<?php 
//  WriteToTrackingService()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:1229

    
protected function WriteToTrackingService($message ""$modifiedBy 0$trackingType = -1)
    {
        
/** @var CBPTrackingService $trackingService */
        
$trackingService $this->workflow->GetService("TrackingService");
        if (
$trackingType 0)
            
$trackingType CBPTrackingType::Custom;
        
$trackingService->Write($this->GetWorkflowInstanceId(), $trackingType$this->name$this->executionStatus$this->executionResult, ($this->IsPropertyExists("Title") ? $this->Title ""), $message$modifiedBy);
    }