Documentation

GetRootActivity

CBPActivity
CBPActivity::GetRootActivity(
);

This method returns a root activity for workflow. Root activity realizes IBPRootActivity interface.

Returned value

Object of CBPActivity type, presenting a root activity for workflow.

Examples

<?
$rootActivity = $this->GetRootActivity();
$documentId = $rootActivity->GetDocumentId();
?>


© «Bitrix24», 2001-2024
Up