• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/director.php
  • Класс: BitrixRpaDirector
  • Вызов: Director::getScenariosForType
public function getScenariosForType(Type $type): Collection
{
	$scenarios = [];

	$stages = $type->getStages();
	if($stages->count() === 0)
	{
		$scenarios[] = new DefaultStages($type);
		$scenarios[] = new TypeAutomation($type);
		$scenarios[] = new TypeFieldSettings($type);
	}

	return new Collection($scenarios);
}