CBPWorkflow :: FinalizeActivity: Bitrix method

      
<?php 
//  CBPWorkflow :: FinalizeActivity()
//  /dist/bitrix/modules/bizproc/classes/general/workflow.php:582

    
public function FinalizeActivity(CBPActivity $activity)
    {
        if (
$activity == null)
            throw new 
CBPArgumentNullException("activity");

        
//if ($activity->executionStatus != CBPActivityExecutionStatus::Closed)
        //    throw new Exception("InvalidFinalizingState");

        
$activity->Finalize();
    }