• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/automation/engine/conditiongroup.php
  • Класс: BitrixBizprocAutomationEngineConditionGroup
  • Вызов: ConditionGroup::getFieldTypeObject
private function getFieldTypeObject(CBPDocumentService $documentService, array $documentType, $conditionField): ?BitrixBizprocFieldType
{
	$documentFields = $documentService->getDocumentFields($documentType);

	$fieldType = null;

	if (isset($documentFields[$conditionField]))
	{
		$fieldType = $documentService->getFieldTypeObject($documentType, $documentFields[$conditionField]);
	}

	if (!$fieldType)
	{
		$fieldType = $documentService->getFieldTypeObject($documentType, ['Type' => 'string']);
	}

	return $fieldType;
}