src/Engine/AbstractScopeActivity.php
public function findAttachedBoundaryActivities(VirtualExecution $execution): array
    {
        $model = $execution->getProcessModel();
        $activities = [];
        
        foreach ($model->findNodes() as $node) {
            $behavior = $node->getBehavior();
            
            if ($behavior instanceof AbstractBoundaryActivity) {
                if ($this->activityId == $behavior->getAttachedTo()) {
                    $activities[] = $node;
                }
            }
        }
        
        return $activities;
    }
public function findAttachedBoundaryActivities(VirtualExecution $execution): array
    {
        $model = $execution->getProcessModel();
        $activities = [];
        
        foreach ($model->findNodes() as $node) {
            $behavior = $node->getBehavior();
            
            if ($behavior instanceof AbstractBoundaryActivity) {
                if ($this->activityId == $behavior->getAttachedTo()) {
                    $activities[] = $node;
                }
            }
        }
        
        return $activities;
    }
public function findAttachedBoundaryActivities ( VirtualExecution $ execution ) : array { $ model = $ execution -> getProcessModel ( ) ; $ activities = [ ] ; foreach ( $ model -> findNodes ( ) as $ node ) { $ behavior = $ node -> getBehavior ( ) ; if ( $ behavior instanceof AbstractBoundaryActivity ) { if ( $ this -> activityId == $ behavior -> getAttachedTo ( ) ) { $ activities [ ] = $ node ; } } } return $ activities ; }
Collect all boundary events connected to the activity of the given execution.
Collect all boundary events connected to the activity of the given execution .