- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/ml/scoring.php
- Класс: Bitrix\Crm\Ml\Scoring
- Вызов: Scoring::sendPredictionUpdatePullEvent
static function sendPredictionUpdatePullEvent($entityTypeId, $entityId, $predictionRecord): void
{
if (!Loader::includeModule('pull'))
{
return;
}
\CPullWatch::AddToStack(
static::getPredictionUpdatePullTag($entityTypeId, $entityId),
[
'module_id' => 'crm',
'command' => 'predictionUpdate',
'params' => [
'entityType' => CCrmOwnerType::ResolveName($entityTypeId),
'entityId' => $entityId,
'predictionRecord' => $predictionRecord
]
]
);
}