DocumentService
The DocumentService is used to manage case folders, which are used to store documents associated with a case.
The table below lists the functions available from the DocumentService.
System actions required: deleteDocument, deleteOrphanedFolders, and unlinkDocument require the cmisAdmin system action. All other DocumentService functions require the cmisUser system action.
Function | Description | Returns |
---|---|---|
createDocument | Creates a document in a case folder. | CreateDocumentResponseType |
deleteDocument
--or-- |
Deletes the specified document from the CMS.
You can either pass a document reference string, or a DeleteDocumentRequestType element, to identify the document.** |
DeleteDocumentResponseType |
deleteOrphanedFolders | Deletes orphaned case folders, that is, case folders whose case objects have been deleted.
Orphaned case folders may be deleted automatically when case objects are deleted, depending on the setting in the deleteFolderOnUndeploymentOrCaseObjectDeletion configuration parameter. For more information, see the "Case Folders" section in the TIBCO ActiveMatrix BPM Case Data User's Guide. |
DeleteOrphanedFoldersResponseType |
findDocuments
--or-- |
Returns references to documents that are linked to a specified case.
You can either pass a case reference string, or a FindDocumentsRequestType element, to identify the case. For more information about queries used with the findDocuments function, see Queries for findDocuments. |
FindDocumentsResponseType |
getDocumentContent
--or-- |
Returns the content of the specified document.
You can either pass a document reference string, or a GetDocumentContentRequestType element, to identify the document.** The response returns the document content, in base64Binary, as well as the mime type of the content. |
GetDocumentContentResponseType |
getDocumentMetadata
--or-- |
Returns the metadata for the specified document.
You can either pass a document reference string, or a GetDocumentMetadataRequestType element, to identify the document.** |
GetDocumentMetadataResponseType |
getFolderContent
--or-- |
Returns the content of the specified case folder, and optionally, sub-folders.
You can either pass a case reference string, or a GetFolderContentRequestType element, to identify the case.** |
GetFolderContentResponseType |
getRepositoryInfo | Returns information about the CMIS repository, including which "versioning states" the repository supports.
Some repositories support versioning (in which case, MAJOR and MINOR are typically allowed) and others don't support versioning (in which case, this operation returns "NONE" for "versioningStateSupported"). This information can be used by the application to offer only the valid choices when users attempt to import documents. |
GetRepositoryInfoResponseType |
linkDocument
--or-- |
Links a document to a specified case.
You can either pass the document reference (or document specifier) and target case reference as strings, or a LinkDocumentRequestType element, to identify the document and case.** |
LinkDocumentResponseType |
moveDocument
--or-- |
Moves the specified document from one case folder to another case folder.
You can either pass the document reference and source and target case references as strings, or a MoveDocumentRequestType element, to identify the document and case.** The response returns the document reference of the document that was moved. Note that moving the document may cause its reference to change. |
MoveDocumentResponseType |
unlinkDocument
--or-- |
Unlinks a document from a case, which removes the document from the case folder.
You can either pass the document and case references as strings, or an UnlinkDocumentRequestType element, to identify the document and case.** |
UnlinkDocumentResponseType |