CBPSchedulerService :: SubscribeOnTime: Bitrix method

      
<?php 
//  CBPSchedulerService :: SubscribeOnTime()
//  /dist/bitrix/modules/bizproc/classes/general/schedulerservice.php:62

    
public function SubscribeOnTime($workflowId$eventName$expiresAt)
    {
        
$workflowId preg_replace('#[^a-z0-9.]#i'''$workflowId);
        
$eventName preg_replace('#[^a-z0-9._-]#i'''$eventName);

        
$minLimit = static::getDelayMinLimit(false);
        if (
$minLimit 0)
        {
            
$minExpiresAt time() + $minLimit;
            if (
$minExpiresAt $expiresAt)
            {
                
$expiresAt $minExpiresAt;
            }
        }

        return 
self::addAgent($workflowId$eventName$expiresAt);
    }