AddStatusTitle: Bitrix method

      
<?php 
//  AddStatusTitle()
//  /dist/bitrix/modules/bizproc/classes/general/activity.php:381

    
public function AddStatusTitle($title '')
    {
        if (
$title == '')
            return;

        
$stateService $this->workflow->GetService("StateService");

        
$mainTitle $stateService->GetStateTitle($this->GetWorkflowInstanceId());
        
$mainTitle .= ((strpos($mainTitle": ") !== false) ? ", " ": ").$title;

        
$stateService->SetStateTitle($this->GetWorkflowInstanceId(), $mainTitle);
    }