WorkflowService
FinalYes
Table of Contents
Methods
- __construct() : mixed
- canUserStartWorkflow() : bool
- canUserWriteDocument() : bool
- getComplexDocumentId() : array<string|int, mixed>|null
- getComplexDocumentType() : array<string|int, mixed>|null
- getDocumentStates() : array<string|int, mixed>
- getDocumentStatesWithParameters() : array<string|int, mixed>
- getDocumentTypeStates() : array<string|int, mixed>
- getNotRunningDocumentStates() : mixed
- getNotTunedDocumentTypeStates() : array<string|int, mixed>
- getParameterValuesFromRequest() : GetParameterValuesResponse
- getSignedDocument() : string|null
- hasParameters() : bool
- hasTemplatesOnStartup() : bool
- isConstantsTuned() : bool
- setConstants() : Response
- startWorkflows() : StartWorkflowsResponse
Methods
__construct()
public
__construct(array<string|int, mixed> $iBlockInfo) : mixed
Parameters
- $iBlockInfo : array<string|int, mixed>
canUserStartWorkflow()
public
canUserStartWorkflow(int $currentUserId, int $elementId[, int $sectionId = 0 ]) : bool
Parameters
- $currentUserId : int
- $elementId : int
- $sectionId : int = 0
Return values
boolcanUserWriteDocument()
public
canUserWriteDocument(int $elementId, int $userId, array<string|int, mixed> $userGroups) : bool
Parameters
- $elementId : int
- $userId : int
- $userGroups : array<string|int, mixed>
Return values
boolgetComplexDocumentId()
public
getComplexDocumentId(int $elementId) : array<string|int, mixed>|null
Parameters
- $elementId : int
Return values
array<string|int, mixed>|nullgetComplexDocumentType()
public
getComplexDocumentType() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetDocumentStates()
public
getDocumentStates(array<string|int, mixed>|null $complexDocumentId) : array<string|int, mixed>
Parameters
- $complexDocumentId : array<string|int, mixed>|null
Return values
array<string|int, mixed>getDocumentStatesWithParameters()
public
getDocumentStatesWithParameters(int $elementId) : array<string|int, mixed>
Parameters
- $elementId : int
Return values
array<string|int, mixed>getDocumentTypeStates()
public
getDocumentTypeStates() : array<string|int, mixed>
Return values
array<string|int, mixed>getNotRunningDocumentStates()
public
getNotRunningDocumentStates(int $elementId) : mixed
Parameters
- $elementId : int
getNotTunedDocumentTypeStates()
public
getNotTunedDocumentTypeStates() : array<string|int, mixed>
Return values
array<string|int, mixed>getParameterValuesFromRequest()
public
getParameterValuesFromRequest(array<string|int, mixed> $request, int $elementId) : GetParameterValuesResponse
Parameters
- $request : array<string|int, mixed>
- $elementId : int
Return values
GetParameterValuesResponsegetSignedDocument()
public
getSignedDocument(int $elementId) : string|null
Parameters
- $elementId : int
Return values
string|nullhasParameters()
public
hasParameters(int $elementId) : bool
Parameters
- $elementId : int
Return values
boolhasTemplatesOnStartup()
public
hasTemplatesOnStartup([array<string|int, mixed>|null $complexDocumentId = null ]) : bool
Parameters
- $complexDocumentId : array<string|int, mixed>|null = null
Return values
boolisConstantsTuned()
public
isConstantsTuned() : bool
Return values
boolsetConstants()
public
setConstants(array<string|int, mixed> $request) : Response
Parameters
- $request : array<string|int, mixed>
Return values
ResponsestartWorkflows()
public
startWorkflows(StartWorkflowsRequest $request) : StartWorkflowsResponse
Parameters
- $request : StartWorkflowsRequest