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