Package io.camunda.client.api.command
Interface AgentInstanceHistoryContent
- All Known Implementing Classes:
AgentInstanceHistoryContent.DocumentContent,AgentInstanceHistoryContent.ObjectContent,AgentInstanceHistoryContent.TextContent
public interface AgentInstanceHistoryContent
A content block in an agent instance history item. Use the static factory methods to create
instances; downcast to
AgentInstanceHistoryContent.TextContent, AgentInstanceHistoryContent.DocumentContent, or AgentInstanceHistoryContent.ObjectContent to
access type-specific fields.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classCamunda Document Store reference content block (contentType = "DOCUMENT").static final classArbitrary structured content block (contentType = "OBJECT").static final classPlain-text content block (contentType = "TEXT"). -
Method Summary
Modifier and TypeMethodDescriptiondocument(DocumentReferenceResponse documentReference) Creates a document-reference content block from aDocumentReferenceResponsereturned by other document APIs (e.g. upload or create-link).static AgentInstanceHistoryContentCreates an arbitrary-object content block.static AgentInstanceHistoryContentCreates a plain-text content block.
-
Method Details
-
getContentType
String getContentType() -
text
Creates a plain-text content block.- Parameters:
text- the text. Must not be null.- Returns:
- an
AgentInstanceHistoryContentof type TEXT
-
object
Creates an arbitrary-object content block.- Parameters:
object- any valid JSON value (object, array, number, boolean, or string). Must not be null.- Returns:
- an
AgentInstanceHistoryContentof type OBJECT
-
document
static AgentInstanceHistoryContent.DocumentContent document(DocumentReferenceResponse documentReference) Creates a document-reference content block from aDocumentReferenceResponsereturned by other document APIs (e.g. upload or create-link).- Parameters:
documentReference- the document reference. Must not be null.- Returns:
- a
AgentInstanceHistoryContent.DocumentContentof type DOCUMENT
-