1C-Bitrix 25.700.0
|
Открытые статические члены | |
static | migrateDocumentType ($oldType, $newType) |
static | getDocumentStates ($documentType, $documentId=null) |
static | getActiveStates (array $documentId, $limit=0) |
static | getDocumentState ($documentId, $workflowId) |
static | mergeDocuments ($firstDocumentId, $secondDocumentId) |
static | getAllowableEvents ($userId, $arGroups, $arState, $appendExtendedGroups=false) |
static | addDocumentToHistory ($parameterDocumentId, $name, $userId) |
static | getAllowableOperations ($userId, $arGroups, $arStates, $appendExtendedGroups=false) |
static | canOperate ($operation, $userId, $arGroups, $arStates) |
static | startWorkflow ($workflowTemplateId, $documentId, $parameters, &$errors, $parentWorkflow=null) |
static | startDebugWorkflow ($workflowTemplateId, $documentId, $parameters, &$errors) |
static | autoStartWorkflows ($documentType, $autoExecute, $documentId, $arParameters, &$arErrors) |
static | sendExternalEvent ($workflowId, $workflowEvent, $arParameters, &$arErrors) |
static | terminateWorkflow ($workflowId, $documentId, &$arErrors, $stateTitle='') |
static | killWorkflow ($workflowId, $terminate=true, $documentId=null) |
static | onDocumentDelete ($documentId, &$errors) |
static | postTaskForm ($arTask, $userId, $arRequest, &$arErrors, $userName="") |
static | showTaskForm ($arTask, $userId, $userName="", $arRequest=null) |
static | setTasksUserStatus ($userId, $status, $ids=array(), &$errors=array()) |
static | getTaskControls ($arTask, $userId=0) |
static | startWorkflowParametersValidate ($templateId, $arWorkflowParameters, $documentType, &$arErrors) |
static | startWorkflowParametersShow ($templateId, $arWorkflowParameters, $formName, $bVarsFromForm, $documentType=null) |
static | addShowParameterInit ($module, $type, $document_type, $entity="", $document_id='') |
static | showParameterField ($type, $name, $values, $arParams=Array()) |
static | _ReplaceTaskURL ($str, $documentType) |
static | addDefaultWorkflowTemplates ($documentType, $additionalModuleId=null) |
static | getWorkflowTemplatesForDocumentType ($documentType, $showSystemTemplates=true) |
static | getNumberOfWorkflowTemplatesForDocumentType ($documentType) |
static | deleteWorkflowTemplate ($id, $documentType, &$arErrors) |
static | updateWorkflowTemplate ($id, $documentType, $arFields, &$arErrors) |
static | canUserOperateDocument ($operation, $userId, $parameterDocumentId, $arParameters=array()) |
static | canUserOperateDocumentType ($operation, $userId, $parameterDocumentType, $arParameters=array()) |
static | getDocumentAdminPage ($parameterDocumentId) |
static | getDocumentName ($parameterDocumentId) |
static | getUserTasksForWorkflow ($userId, $workflowId) |
static | prepareFileForHistory ($documentId, $fileId, $historyIndex) |
static | isAdmin () |
static | getDocumentFromHistory ($historyId, &$arErrors) |
static | getAllowableUserGroups ($parameterDocumentType) |
static | onAfterTMDayStart ($data) |
static | sendB24LimitsNotifyToAdmins () |
static | getDocumentFieldsAliasesMap ($fields) |
static | isExpression ($value) |
static | parseExpression ($expression) |
static | signParameters (array $parameters) |
static | unSignParameters ($unsignedData) |
static | signDocumentType (array $documentType) |
static | unSignDocumentType ($unsignedData) |
static | getTemplatesForStart ($userId, $documentType, $documentId=null, array $parameters=array()) |
static | getUserGroups (array $parameterDocumentType, array $parameterDocumentId, int $userId) |
Поля данных | |
const | PARAM_TAGRET_USER = 'TargetUser' |
const | PARAM_MODIFIED_DOCUMENT_FIELDS = 'ModifiedDocumentField' |
const | PARAM_USE_FORCED_TRACKING = 'UseForcedTracking' |
const | PARAM_IGNORE_SIMULTANEOUS_PROCESSES_LIMIT = 'IgnoreSimultaneousProcessesLimit' |
const | PARAM_DOCUMENT_EVENT_TYPE = 'DocumentEventType' |
const | PARAM_DOCUMENT_TYPE = '__DocumentType' |
const | PARAM_PRE_GENERATED_WORKFLOW_ID = 'PreGeneratedWorkflowId' |
const | PARAM_USED_DOCUMENT_FIELDS = 'UsedDocumentField' |
Bizproc API Helper for external usage.
См. определение в файле document.php строка 13
|
static |
См. определение в файле document.php строка 1166
|
static |
См. определение в файле document.php строка 1178
|
static |
См. определение в файле document.php строка 211
|
static |
См. определение в файле document.php строка 985
|
static |
Method auto starts workflow.
array | $documentType | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). |
int | $autoExecute | - CBPDocumentEventType (1 = CBPDocumentEventType\Create, 2 = CBPDocumentEventType\Edit). |
array | $documentId | - Document id array(MODULE_ID, ENTITY, DOCUMENT_ID). |
array | $arParameters | - Workflow parameters. |
array | $arErrors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
См. определение в файле document.php строка 452
|
static |
Method check can operate user specified operation in specified state. If specified states are not relevant to state machine returns true. If user can`t do operation return false. Else returns true.
string | $operation | - Operation. |
int | $userId | - User id. |
array | $arGroups | - User groups. |
array | $arStates | - Workflows states. |
Exception |
См. определение в файле document.php строка 316
|
static |
Method checks can user operate specified document with specified operation.
int | $operation | - operation CBPCanUserOperateOperation. |
int | $userId | - User id. |
array | $parameterDocumentId | - Document id array(MODULE_ID, ENTITY, DOCUMENT_ID). |
array | $arParameters | - Additional parameters. |
См. определение в файле document.php строка 1422
|
static |
Method checks can user operate specified document type with specified operation.
int | $operation | - operation CBPCanUserOperateOperation. |
int | $userId | - User id. |
array | $parameterDocumentType | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). |
array | $arParameters | - Additional parameters. |
См. определение в файле document.php строка 1444
|
static |
Method deletes workflow template.
int | $id | - Template id. |
array | $documentType | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). |
array | $arErrors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
См. определение в файле document.php строка 1333
|
static |
См. определение в файле document.php строка 123
|
static |
Method returns array of events available for specified user and specified state
int | $userId | - User id. |
array | $arGroups | - User groups. |
array | $arState | - Workflow state. |
bool | $appendExtendedGroups | - Append extended groups. |
Exception |
См. определение в файле document.php строка 171
|
static |
Method returns allowable operations for specified user in specified states. If specified states are not relevant to state machine returns null. If user has no access returns array(). Else returns operations array(operation, ...).
int | $userId | - User id. |
array | $arGroups | - User groups. |
array | $arStates | - Workflow states. |
bool | $appendExtendedGroups | - Append extended groups. |
Exception |
См. определение в файле document.php строка 266
|
static |
См. определение в файле document.php строка 1569
|
static |
Get document admin page URL.
array | $parameterDocumentId | - Document id array(MODULE_ID, ENTITY, DOCUMENT_ID). |
См. определение в файле document.php строка 1463
|
static |
Method returns map of document fields aliases.
array | $fields | Document fields. |
См. определение в файле document.php строка 1643
|
static |
См. определение в файле document.php строка 1546
|
static |
array | $parameterDocumentId | Document Id. |
CBPArgumentNullException |
См. определение в файле document.php строка 1481
|
static |
Method returns workflow state for specified document.
array | $documentId | - Document id array(MODULE_ID, ENTITY, DOCUMENT_ID). |
string | $workflowId | - Workflow id. |
См. определение в файле document.php строка 148
|
static |
Method returns array of workflow templates and states for specified document. If document id is set method returns array of running and terminated workflow states and also templates which started on document edit action. If document id is not set method returns array of templates which started on document add. Return array example: array( workflow_id_or_template_id => array( "ID" => workflow_id, "TEMPLATE_ID" => template_id, "TEMPLATE_NAME" => template_name, "TEMPLATE_DESCRIPTION" => template_description, "TEMPLATE_PARAMETERS" => template_parameters, "STATE_NAME" => current_state_name, "STATE_TITLE" => current_state_title, "STATE_MODIFIED" => state_modified_datetime, "STATE_PARAMETERS" => state_parameters, "STATE_PERMISSIONS" => state_permissions, "WORKFLOW_STATUS" => workflow_status, ), . . . ) TEMPLATE_PARAMETERS example: array( "param1" => array( "Name" => "Parameter 1", "Description" => "", "Type" => "int", "Required" => true, "Multiple" => false, "Default" => 8, "Options" => null, ), "param2" => array( "Name" => "Parameter 2", "Description" => "", "Type" => "select", "Required" => false, "Multiple" => true, "Default" => "v2", "Options" => array( "v1" => "V 1", "v2" => "V 2", "v3" => "V 3", . . . ), ), . . . ) STATE_PARAMETERS example: array( array( "NAME" => event_name, "TITLE" => event_title, "PERMISSION" => array('user_1') ), . . . ) STATE_PERMISSIONS example: array( operation => users_array, . . . )
array | $documentType | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE) |
null | array | $documentId | - Document id array(MODULE_ID, ENTITY, DOCUMENT_ID). |
См. определение в файле document.php строка 108
|
static |
См. определение в файле document.php строка 1316
|
static |
См. определение в файле document.php строка 832
|
static |
См. определение в файле document.php строка 1747
См. определение в файле document.php строка 1806
|
static |
Method returns task array for specified user and specified workflow state. Return array example: array( array( "ID" => task_id, "NAME" => task_name, "DESCRIPTION" => task_description, ), . . . )
int | $userId | - User id. |
string | $workflowId | - Workflow id. |
См. определение в файле document.php строка 1510
|
static |
Method returns array of workflow templates for specified document type. Return array example: array( array( "ID" => workflow_id, "NAME" => template_name, "DESCRIPTION" => template_description, "MODIFIED" => modified datetime, "USER_ID" => modified by user id, "USER_NAME" => modified by user name, "AUTO_EXECUTE" => flag CBPDocumentEventType, "AUTO_EXECUTE_TEXT" => auto_execute_text, ), . . . )
array | $documentType | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). |
bool | $showSystemTemplates | Shows system templates. |
См. определение в файле document.php строка 1257
|
static |
См. определение в файле document.php строка 1540
|
static |
Bizproc expression checker. Required for usage from external modules! Examples: {=Document:IBLOCK_ID}, {=Document:CREATED_BY>printable}, {=SequentialWorkflowActivity1:DocumentApprovers>user,printable}
$value |
См. определение в файле document.php строка 1667
|
static |
См. определение в файле document.php строка 566
|
static |
См. определение в файле document.php строка 154
|
static |
См. определение в файле document.php строка 24
|
static |
См. определение в файле document.php строка 1588
|
static |
Method removes all related document data.
array | $documentId | - Document id array(MODULE_ID, ENTITY, DOCUMENT_ID). |
array | $errors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
См. определение в файле document.php строка 597
|
static |
См. определение в файле document.php строка 1673
|
static |
См. определение в файле document.php строка 624
|
static |
См. определение в файле document.php строка 1535
|
static |
См. определение в файле document.php строка 1633
|
static |
Method sends external event to workflow.
string | $workflowId | - Workflow id. |
string | $workflowEvent | - Event name. |
array | $arParameters | - Event parameters. |
array | $arErrors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
См. определение в файле document.php строка 511
|
static |
См. определение в файле document.php строка 1092
|
static |
См. определение в файле document.php строка 660
|
static |
См. определение в файле document.php строка 1707
|
static |
См. определение в файле document.php строка 1693
|
static |
См. определение в файле document.php строка 363
|
static |
Method starts workflow.
int | $workflowTemplateId | - Template id. |
array | $documentId | - Document id array(MODULE_ID, ENTITY, DOCUMENT_ID). |
array | $parameters | - Workflow parameters. |
array | $errors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
array | null | $parentWorkflow | - Parent workflow information. |
См. определение в файле document.php строка 339
|
static |
Method shows parameters form. Validates in StartWorkflowParametersValidate.
int | $templateId | - Template id. |
array | $arWorkflowParameters | - Workflow parameters. |
string | $formName | - Form name. |
bool | $bVarsFromForm | - false on first form open, else - true. |
null | array | $documentType | Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). |
См. определение в файле document.php строка 927
|
static |
Method validates parameters values from StartWorkflowParametersShow.
int | $templateId | - Template id. |
array | $arWorkflowParameters | - Workflow parameters. |
$documentType | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). | |
array | $arErrors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
См. определение в файле document.php строка 853
|
static |
Method terminates workflow.
string | $workflowId | - Workflow id. |
array | $documentId | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). |
array | $arErrors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
string | $stateTitle | - State title (workflow status). |
См. определение в файле document.php строка 537
|
static |
string | $unsignedData |
См. определение в файле document.php строка 1716
|
static |
|
static |
Method updates workflow template.
int | $id | - Template id. |
array | $documentType | - Document type array(MODULE_ID, ENTITY, DOCUMENT_TYPE). |
array | $arFields | - Data for update. |
array | $arErrors | - Errors array(array("code" => error_code, "message" => message, "file" => file_path), ...). |
См. определение в файле document.php строка 1377
const PARAM_DOCUMENT_EVENT_TYPE = 'DocumentEventType' |
См. определение в файле document.php строка 19
const PARAM_DOCUMENT_TYPE = '__DocumentType' |
См. определение в файле document.php строка 20
const PARAM_IGNORE_SIMULTANEOUS_PROCESSES_LIMIT = 'IgnoreSimultaneousProcessesLimit' |
См. определение в файле document.php строка 18
const PARAM_MODIFIED_DOCUMENT_FIELDS = 'ModifiedDocumentField' |
См. определение в файле document.php строка 16
const PARAM_PRE_GENERATED_WORKFLOW_ID = 'PreGeneratedWorkflowId' |
См. определение в файле document.php строка 21
const PARAM_TAGRET_USER = 'TargetUser' |
См. определение в файле document.php строка 15
const PARAM_USE_FORCED_TRACKING = 'UseForcedTracking' |
См. определение в файле document.php строка 17
const PARAM_USED_DOCUMENT_FIELDS = 'UsedDocumentField' |
См. определение в файле document.php строка 22