Documentation

DeleteWorkflowTemplate

void
CBPDocument::DeleteWorkflowTemplate(  int id,
 array documentType,
 array &arErrors
);

Method deletes a workflow template.

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

Method parameters

ParameterDescription
idWorkflow template code
documentTypeDocument type code as an array(module, document_class, document_type_code_in_module)
arErrorsarray of errors that occurred during execution, as follows
array(
array(
"code" => code_error,
"message" => message,
"file" => path_to_file
),
...
)

Examples

<?
// Delete workflow template with code 132 for information block 18
CBPDocument::DeleteWorkflowTemplate(
132,
array("iblock", "CIBlockDocument", "iblock_18"),
$arErrorTmp
);
?>


© «Bitrix24», 2001-2024