Class PlatformFormUtil
java.lang.Object
com.flowable.platform.service.util.PlatformFormUtil
public class PlatformFormUtil
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
CONTENT_ITEM_DOWNLOAD_URL_PATTERN
protected static java.lang.String
CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN
-
Method Summary
Modifier and Type Method Description protected static java.util.Map<java.lang.String,java.lang.Object>
asMap(com.fasterxml.jackson.databind.node.ObjectNode objectNode, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
static void
copyAndTransformSavedFormInstanceValues(java.util.Map<java.lang.String,java.lang.Object> savedFormVariables, java.util.Map<java.lang.String,java.lang.Object> variableMap, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, com.flowable.core.content.api.MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected static void
copyToMap(java.util.Map<java.lang.String,java.lang.Object> variableMap, java.lang.String formVariableName, com.fasterxml.jackson.databind.JsonNode valueNode, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected static org.flowable.content.api.ContentItem
findContentItem(java.lang.String contentItemId, com.fasterxml.jackson.databind.JsonNode valueNode, com.flowable.core.content.api.CoreContentService contentService)
static org.flowable.content.api.ContentItem
findContentItemInSavedFormInstanceValues(java.lang.String contentItemId, java.util.Map<java.lang.String,java.lang.Object> savedFormVariables, com.flowable.core.content.api.CoreContentService contentService)
protected static java.lang.String
getContentItemDownloadUrl(java.lang.String contentItemId)
protected static java.lang.String
getLatestRenditionUrlForContentItem(org.flowable.content.api.ContentItem contentItem, java.lang.String mimeType, com.flowable.core.content.api.RenditionService renditionService)
protected static java.lang.String
getRenditionItemDownloadUrl(java.lang.String renditionItemId)
static java.lang.String
getStartFormFieldValidation(java.util.Map<java.lang.String,java.util.List<org.flowable.cmmn.model.ExtensionElement>> extensionElements)
static boolean
isFormFieldValidationEnabled(org.flowable.common.engine.api.variable.VariableContainer variableContainer, java.lang.String formFieldValidationExpression)
static ContentItemRepresentation
transformContentItem(com.flowable.content.engine.impl.persistence.entity.ContentItemEntity contentItem, com.flowable.core.content.api.RenditionService renditionService, com.flowable.core.content.api.MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
protected static ContentItemRepresentation
transformContentItemWithFormMetadata(com.flowable.content.engine.impl.persistence.entity.ContentItemEntity contentItem, com.fasterxml.jackson.databind.node.ObjectNode itemNode, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected static ContentItemRepresentation
transformContentItemWithoutMetadata(com.flowable.content.engine.impl.persistence.entity.ContentItemEntity contentItem, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper)
-
Field Details
-
CONTENT_ITEM_DOWNLOAD_URL_PATTERN
protected static final java.lang.String CONTENT_ITEM_DOWNLOAD_URL_PATTERN- See Also:
- Constant Field Values
-
CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN
protected static final java.lang.String CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN- See Also:
- Constant Field Values
-
-
Method Details
-
copyAndTransformSavedFormInstanceValues
public static void copyAndTransformSavedFormInstanceValues(java.util.Map<java.lang.String,java.lang.Object> savedFormVariables, java.util.Map<java.lang.String,java.lang.Object> variableMap, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, com.flowable.core.content.api.MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
findContentItemInSavedFormInstanceValues
public static org.flowable.content.api.ContentItem findContentItemInSavedFormInstanceValues(java.lang.String contentItemId, java.util.Map<java.lang.String,java.lang.Object> savedFormVariables, com.flowable.core.content.api.CoreContentService contentService) -
transformContentItem
public static ContentItemRepresentation transformContentItem(com.flowable.content.engine.impl.persistence.entity.ContentItemEntity contentItem, com.flowable.core.content.api.RenditionService renditionService, com.flowable.core.content.api.MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper) -
transformContentItemWithFormMetadata
protected static ContentItemRepresentation transformContentItemWithFormMetadata(com.flowable.content.engine.impl.persistence.entity.ContentItemEntity contentItem, com.fasterxml.jackson.databind.node.ObjectNode itemNode, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
transformContentItemWithoutMetadata
protected static ContentItemRepresentation transformContentItemWithoutMetadata(com.flowable.content.engine.impl.persistence.entity.ContentItemEntity contentItem, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper) -
isFormFieldValidationEnabled
public static boolean isFormFieldValidationEnabled(org.flowable.common.engine.api.variable.VariableContainer variableContainer, java.lang.String formFieldValidationExpression) -
getStartFormFieldValidation
public static java.lang.String getStartFormFieldValidation(java.util.Map<java.lang.String,java.util.List<org.flowable.cmmn.model.ExtensionElement>> extensionElements) -
copyToMap
protected static void copyToMap(java.util.Map<java.lang.String,java.lang.Object> variableMap, java.lang.String formVariableName, com.fasterxml.jackson.databind.JsonNode valueNode, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
findContentItem
protected static org.flowable.content.api.ContentItem findContentItem(java.lang.String contentItemId, com.fasterxml.jackson.databind.JsonNode valueNode, com.flowable.core.content.api.CoreContentService contentService) -
getLatestRenditionUrlForContentItem
protected static java.lang.String getLatestRenditionUrlForContentItem(org.flowable.content.api.ContentItem contentItem, java.lang.String mimeType, com.flowable.core.content.api.RenditionService renditionService) -
asMap
protected static java.util.Map<java.lang.String,java.lang.Object> asMap(com.fasterxml.jackson.databind.node.ObjectNode objectNode, com.flowable.core.content.api.CoreContentService contentService, com.flowable.core.content.api.RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getContentItemDownloadUrl
protected static java.lang.String getContentItemDownloadUrl(java.lang.String contentItemId) -
getRenditionItemDownloadUrl
protected static java.lang.String getRenditionItemDownloadUrl(java.lang.String renditionItemId)
-