Метод create
Сигнатура метода
public static function create(string $scenario, int $activityId, Context $context, ?AssociatedEntityModel $model = null, int $rootActivityId = 0): ?AIAction
Возвращает:
?AIAction
Описание
Creates AI action by scenario name and activity provider. Returns null if scenario is not supported or required data is missing.
Параметры
5| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$scenario
|
string
|
—
|
—
|
$activityId
|
int
|
—
|
—
|
$context
|
Context
|
—
|
—
|
$model
|
?AssociatedEntityModel
|
null
|
—
|
$rootActivityId
|
int
|
0
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/Service/Timeline/Item/Activity/AI/Action/AIActionRegistry.php
Расположение метода в файле
Строки
54–81