• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/automation/tracker.php
  • Класс: Bitrix\Crm\Automation\Tracker
  • Вызов: Tracker::getLog
public function getLog()
{
	$log = array();

	if (!Helper::isBizprocEnabled())
		return $log;

	$currentStatus = $this->target->getEntityStatus();
	$allStatuses = $this->target->getEntityStatuses();

	$needleKey = array_search($currentStatus, $allStatuses);

	if ($needleKey === false)
		return $log;

	$logStatuses = array_slice($allStatuses, 0, $needleKey + 1);

	return $this->getBizprocTrackingEntries($logStatuses);
}