Documentation

GetUserTasksForWorkflow

array
public static function CBPDocument::GetUserTasksForWorkflow(
 integer userId,
 string workflowId
);

This method returns an array of tasks for this user in this workflow.

Note: This method receives an array of configuration parameters and generates scripts, required to show file dialog. Static method.

Method parameters

ParameterDescription
userIdUser ID code
workflowIdWorkflow ID code

Returned value

Returned array is presented as follows :

array(
array(
"ID" => task_code,
"NAME" => task_name,
"DESCRIPTION" => test_description,
),
. . .
)

Examples

<?
$documentType = array("bizproc", "CBPVirtualDocument", "type_".$iblockId);
$documentId = array("bizproc", "CBPVirtualDocument", $id);

$arDocumentStates = CBPDocument::GetDocumentStates($documentType, $documentId);

foreach ($arDocumentStates as $arDocumentState)
{
$ar = CBPDocument::GetUserTasksForWorkflow($GLOBALS["USER"]->GetID(), $arDocumentState["ID"]);
print_r($ar);
}
?>


© «Bitrix24», 2001-2024
Up