src/Engine/AbstractActivity.php
public function leave(VirtualExecution $execution, ?array $transitions = null): void
    {
        $execution->getEngine()->notify(new ActivityCompletedEvent($execution->getNode()->getId(), $execution, $execution->getEngine()));
        
        $this->clearEventSubscriptions($execution, $execution->getNode()->getId());
        
        $execution->takeAll($transitions);
    }
public function leave(VirtualExecution $execution, ?array $transitions = null): void
    {
        $execution->getEngine()->notify(new ActivityCompletedEvent($execution->getNode()->getId(), $execution, $execution->getEngine()));
        
        $this->clearEventSubscriptions($execution, $execution->getNode()->getId());
        
        $execution->takeAll($transitions);
    }
public function leave ( VirtualExecution $ execution , ? array $ transitions = null ) : void { $ execution -> getEngine ( ) -> notify ( new ActivityCompletedEvent ( $ execution -> getNode ( ) -> getId ( ) , $ execution , $ execution -> getEngine ( ) ) ) ; $ this -> clearEventSubscriptions ( $ execution , $ execution -> getNode ( ) -> getId ( ) ) ; $ execution -> takeAll ( $ transitions ) ; }
Have the given execution leave the activity.
Have the given execution leave the activity .