Template::isRobot: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Engine\Template :: isRobot()
//  /dist/bitrix/modules/bizproc/lib/automation/engine/template.php:527

    
protected function isRobot(array $activity)
    {
        if (!
in_array($activity['Type'], static::getAvailableRobotClasses($this->getDocumentType())))
            return 
false;

        if (!empty(
$activity['Children']))
            return 
false;
        return 
true;
    }