Documentation

UpdateWorkflowTemplate

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

This method modifies workflow template parameters.

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

Method parameters

ParameterDescription
idWorkflow template ID code
documentIdDocument type ID code as an array(module, document_class, document_type_code_in_module)
arFieldsArray of new values for workflow template parameters
arErrorsarray of errors that occurred during execution as follows
array(
array(
"code" => code_error,
"message" => message,
"file" => path_to_file
),
...
)

Examples

<?
// modify workflow template autorun flag with code 132 for information block with code 32
CBPDocument::UpdateWorkflowTemplate(
132,
array("iblock", "CIBlockDocument", "iblock_32"),
array(
"AUTO_EXECUTE" => CBPDocumentEventType::Create
),
$arErrorsTmp
);
?>


© «Bitrix24», 2001-2024