• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/conversion/entityconversionwizard.php
  • Класс: Bitrix\Crm\Conversion\EntityConversionWizard
  • Вызов: EntityConversionWizard::execute
public function execute(array $contextData = null)
{
	if (is_array($contextData))
	{
		$this->converter->setContextData($contextData);
	}

	try
	{
		$this->converter->convert();
	}
	catch (EntityConversionException $conversionException)
	{
		$this->exception = $conversionException;
		$this->redirectUrl = (string)$this->getRedirectUrlByConversionException($conversionException);

		$this->save();

		return false;
	}
	catch (\Exception $generalException)
	{
		$this->errorText = $generalException->getMessage();

		$this->save();

		return false;
	}

	$this->redirectUrl = (string)$this->getRedirectUrlByResultData($this->getResultData());

	$this->save();

	return true;
}