WorkflowServiceInterface
        WorkflowServiceInterface.php
                :
        19
                 
    
            Interface
                Methods¶
                 can()
            ¶
can()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        45
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $workflow | WorkflowMetadata | - | - | 
| $transitionName | string | - | - | 
Return values
bool
                 deleteContentLocks()
            ¶
deleteContentLocks()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        130
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $contentId | int | - | - | 
                 deleteLock()
            ¶
deleteLock()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        126
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $versionLock | VersionLock | - | - | 
                 deleteUserLocks()
            ¶
deleteUserLocks()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        128
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $userId | int | - | - | 
                 getVersionLock()
            ¶
getVersionLock()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        105
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $versionInfo | VersionInfo | - | - | 
Return values
VersionLock
Tags
                 getVersionLockByContentId()
            ¶
getVersionLockByContentId()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        110
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $contentId | int | - | - | 
| $versionNo | int | - | - | 
Return values
VersionLock
Tags
                 isVersionLocked()
            ¶
isVersionLocked()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        112
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $versionInfo | VersionInfo | - | - | 
| $userId | int|null | null | - | 
Return values
bool
                 loadAllWorkflowMetadata()
            ¶
loadAllWorkflowMetadata()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        72
                 
    
        Loads all workflow metadata stored in the database.
|  |  | 
Loading all workflow metadata is highly discouraged, it leads to performance issues. Please use only if you understand the consequences.
Return values
array<string|int, WorkflowMetadata>
Tags
                 loadOngoingWorkflowMetadata()
            ¶
loadOngoingWorkflowMetadata()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        79
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $limit | int | 10 | - | 
| $offset | int | 0 | - | 
Return values
array<string|int, WorkflowMetadata>
                 loadOngoingWorkflowMetadataOriginatedByUser()
            ¶
loadOngoingWorkflowMetadataOriginatedByUser()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        87
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $user | UserReference | - | - | 
| $name | string|null | null | - | 
| $limit | int | 10 | - | 
| $offset | int | 0 | - | 
Return values
array<string|int, WorkflowMetadata>
                 loadWorkflowMetadataByStage()
            ¶
loadWorkflowMetadataByStage()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        100
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $workflowName | string | - | - | 
| $stageName | string | - | - | 
Return values
array<string|int, WorkflowMetadata>
                 loadWorkflowMetadataForContent()
            ¶
loadWorkflowMetadataForContent()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        29
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $content | Content | - | - | 
| $name | string|null | null | - | 
Return values
WorkflowMetadata
Tags
                 loadWorkflowMetadataList()
            ¶
loadWorkflowMetadataList()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        74
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $query | WorkflowMetadataQuery | - | - | 
Return values
WorkflowMetadataList
                 loadWorkflowMetadataOriginatedByUser()
            ¶
loadWorkflowMetadataOriginatedByUser()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        60
                 
    
        Loads all workflow metadata started by $user.
|  |  | 
Loading all workflow metadata is highly discouraged, it leads to performance issues. Please use only if you understand the consequences.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $user | UserReference | - | - | 
| $name | string|null | null | - | 
Return values
array<string|int, WorkflowMetadata>
Tags
                 lockVersion()
            ¶
lockVersion()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        117
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $versionInfo | VersionInfo | - | - | 
| $userId | int | null | - | 
Tags
                 start()
            ¶
start()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        37
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $content | Content | - | - | 
| $name | string|null | null | - | 
Return values
WorkflowMetadata
                 unlockVersion()
            ¶
unlockVersion()
            ¶
    
        
        WorkflowServiceInterface.php
                :
        124
                 
    
        |  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $versionInfo | VersionInfo | - | - |