src/Engine/AbstractActivity.php
protected function delegateSignal(VirtualExecution $execution, ?string $signal, array $variables, array $delegation): bool
    {
        if (empty($delegation['nodeId'])) {
            return false;
        }
        
        $node = $execution->getProcessModel()->findNode($delegation['nodeId']);
        
        $execution->getEngine()->debug('Delegating signal <{signal}> to {node}', [
            'signal' => ($signal === null) ? 'null' : $signal,
            'node' => (string) $node
        ]);
        
        $execution->setNode($node);
        $execution->waitForSignal();
        
        $execution->signal($signal, $variables);
        
        return true;
    }
protected function delegateSignal(VirtualExecution $execution, ?string $signal, array $variables, array $delegation): bool
    {
        if (empty($delegation['nodeId'])) {
            return false;
        }
        
        $node = $execution->getProcessModel()->findNode($delegation['nodeId']);
        
        $execution->getEngine()->debug('Delegating signal <{signal}> to {node}', [
            'signal' => ($signal === null) ? 'null' : $signal,
            'node' => (string) $node
        ]);
        
        $execution->setNode($node);
        $execution->waitForSignal();
        
        $execution->signal($signal, $variables);
        
        return true;
    }
protected function delegateSignal ( VirtualExecution $ execution , ? string $ signal , array $ variables , array $ delegation ) : bool { if ( empty ( $ delegation [ 'nodeId' ] ) ) { return false ; } $ node = $ execution -> getProcessModel ( ) -> findNode ( $ delegation [ 'nodeId' ] ) ; $ execution -> getEngine ( ) -> debug ( 'Delegating signal <{signal}> to {node}' , [ 'signal' => ( $ signal === null ) ? 'null' : $ signal , 'node' => ( string ) $ node ] ) ; $ execution -> setNode ( $ node ) ; $ execution -> waitForSignal ( ) ; $ execution -> signal ( $ signal , $ variables ) ; return true ; }
Delegate signal to a target node using the same execution.

@param VirtualExecution $execution
@param string $signal
@param array $variables
@param array $delegation
@return boolean Returns true if the signal could be delegated.
Delegate signal to a target node using the same execution .