CBPDocumentService::onWorkflowStatusChange: Bitrix method

      
<?php 
//  CBPDocumentService :: onWorkflowStatusChange()
//  /dist/bitrix/modules/bizproc/classes/general/documentservice.php:1290

    
public function onWorkflowStatusChange($parameterDocumentId$workflowId$status$rootActivity null)
    {
        list(
$moduleId$entity$documentId) = CBPHelper::ParseDocumentId($parameterDocumentId);

        if (
strlen($moduleId) > 0)
            
CModule::IncludeModule($moduleId);

        if (
class_exists($entity) && method_exists($entity"onWorkflowStatusChange"))
            return 
call_user_func_array(array($entity"onWorkflowStatusChange"), array($documentId$workflowId$status$rootActivity));

        return 
false;
    }