Robot :: toArray: Bitrix method

      
<?php 
//  Bitrix\Bizproc\Automation\Engine\Robot :: toArray()
//  /dist/bitrix/modules/bizproc/lib/automation/engine/robot.php:140

    
public function toArray()
    {
        
$activity $this->bizprocActivity;
        unset(
$activity['Children']); //Robot activities has no Children
        
$delayInterval $this->getDelayInterval();
        if (
$delayInterval)
        {
            
$activity['Delay'] = $delayInterval->toArray();
            
$activity['DelayName'] = $this->getDelayName();
        }
        if (
$this->isExecuteAfterPrevious())
            
$activity['ExecuteAfterPrevious'] = 1;

        
$condition $this->getCondition();
        if (
$condition)
        {
            
$activity['Condition'] = $condition->toArray();
        }

        return 
$activity;
    }