CBPAllTrackingService::setCompletedByWorkflow: Bitrix method

      
<?php 
//  CBPAllTrackingService :: setCompletedByWorkflow()
//  /dist/bitrix/modules/bizproc/classes/general/trackingservice.php:102

    
public function setCompletedByWorkflow($workflowId$flag true)
    {
        global 
$DB;

        
$workflowId trim($workflowId);

        if (!
$workflowId)
        {
            throw new 
Exception("workflowId");
        }

        
$value1 $flag 'Y' 'N';
        
$value2 $DB->ForSql($workflowId32);

        
$DB->Query(
            
"UPDATE b_bp_tracking SET COMPLETED = '{$value1}' WHERE WORKFLOW_ID = '{$value2}'"
        
);
    }