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
Parameter | Description |
---|---|
id | Workflow template ID code |
documentId | Document type ID code as an array(module, document_class, document_type_code_in_module) |
arFields | Array of new values for workflow template parameters |
arErrors | array of errors that occurred during execution as follows
array( |
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