• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/command.php
  • Класс: BitrixRpaCommand
  • Вызов: Command::saveToHistory
public function saveToHistory(ItemHistory $historyRecord): Result
{
	$historyRecord->setItemId($this->item->getId());
	$historyRecord->setUserId($this->userId);
	if($this->getTaskId() > 0)
	{
		$historyRecord->setTaskId($this->getTaskId());
	}
	$historyRecord->fillEmptyValues();
	return $historyRecord->save();
}