Documentation

AutoStartWorkflows

void
public static function CBPDocument::AutoStartWorkflows(
 array documentType,
 integer autoExecute,
 array documentId,
 array arParameters,
 array &arErrors
);

This method launches workflows, configured for autorun.

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

Method parameters

ParameterDescription
documentTypeDocument type code as an array(module, document_class, document_type_code_in_module)
autoExecuteFlag CBPDocumentEventType autorun type (1 = CBPDocumentEventType::Create, 2 = CBPDocumentEventType::Edit)
documentIdDocument code as an array(module, document_class, document_code_in_module)
arParametersArray of workflow launch parameters
arErrorsArray of errors that occurred during workflow launch as follows
array(
array(
"code" => code_error,
"message" => message,
"file" => path_to_file
),
...
)

See Also



© «Bitrix24», 2001-2024
Up