BaseTrigger::checkApplyRules: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Trigger\BaseTrigger :: checkApplyRules()
//  /dist/bitrix/modules/bizproc/lib/automation/trigger/basetrigger.php:120

    
public function checkApplyRules(array $trigger)
    {
        
$conditionRules is_array($trigger['APPLY_RULES']) && isset($trigger['APPLY_RULES']['Condition'])
            ? 
$trigger['APPLY_RULES']['Condition'] : null;

        if (
$conditionRules)
        {
            
$conditionGroup = new ConditionGroup($conditionRules);
            return 
$conditionGroup->evaluate($this->getTarget());
        }

        return 
true;
    }