Navigation: System activities > Description of the PHP API for system activities > API methods > Setting and checking the status
isCompleted(): bool
Returns true when the Interim status (step_status) of a system activity is set to completed (step_status = 99). For more details, see the TechDoc.
Example:
if( $this->isCompleted() === false ){
$this->markActivityAsCompleted();
}