Package io.camunda.client.api.command
Interface CreateDocumentCommandStep1.CreateDocumentCommandStep2
- All Superinterfaces:
DocumentBuilderStep1.DocumentBuilderStep2,FinalCommandStep<DocumentReferenceResponse>
- All Known Implementing Classes:
CreateDocumentCommandImpl
- Enclosing interface:
CreateDocumentCommandStep1
public static interface CreateDocumentCommandStep1.CreateDocumentCommandStep2
extends FinalCommandStep<DocumentReferenceResponse>, DocumentBuilderStep1.DocumentBuilderStep2
-
Method Summary
Modifier and TypeMethodDescriptioncontentType(String contentType) Sets the content type of the document.customMetadata(String key, Object value) Adds a custom key-value pair to the document metadata.customMetadata(Map<String, Object> customMetadata) Adds custom key-value pairs to the document metadata.documentId(String documentId) Sets the document ID.Sets the file name of the document.processDefinitionId(String processDefinitionId) Sets the process definition that the document is associated with.processInstanceKey(long processInstanceKey) Sets the process instance key that the document is associated with.Sets the store ID.timeToLive(Duration timeToLive) Sets the time-to-live of the document.Methods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute, requestTimeout, send
-
Method Details
-
documentId
Sets the document ID. If not set, the document ID will be generated by the document store.The document ID must be unique within the store. If a document with the same ID already exists, the request will fail.
A custom document ID can be used to prevent duplicate documents from being created in an environment where requests can be retried (e.g. job workers).
- Parameters:
documentId- the document ID
-
storeId
Sets the store ID. If not set, the default store will be used.The store ID is the identifier of the document store where the document should be stored. Documents with the same ID can exist in different stores.
- Parameters:
storeId- the store ID
-
contentType
Sets the content type of the document.- Specified by:
contentTypein interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
contentType- the content type of the document
-
fileName
Sets the file name of the document.- Specified by:
fileNamein interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
name- the file name of the document
-
timeToLive
Sets the time-to-live of the document. The document will be automatically deleted after the time-to-live is exceeded.Depending on the document store, a maximum and a default time-to-live strategy may be enforced.
- Specified by:
timeToLivein interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
timeToLive- the time-to-live of the document
-
processDefinitionId
CreateDocumentCommandStep1.CreateDocumentCommandStep2 processDefinitionId(String processDefinitionId) Sets the process definition that the document is associated with.- Parameters:
processDefinitionId- the process definition ID
-
processInstanceKey
Sets the process instance key that the document is associated with.- Parameters:
processInstanceKey- the process instance key
-
customMetadata
Adds a custom key-value pair to the document metadata.- Specified by:
customMetadatain interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
key- custom metadata keyvalue- custom metadata value
-
customMetadata
CreateDocumentCommandStep1.CreateDocumentCommandStep2 customMetadata(Map<String, Object> customMetadata) Adds custom key-value pairs to the document metadata.- Specified by:
customMetadatain interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
customMetadata- custom metadata key-value pairs
-