public class FlowableFormFieldHandler extends Object implements org.flowable.form.api.FormFieldHandler
Modifier and Type | Field and Description |
---|---|
protected static String |
AUTOUPLOAD |
protected static String |
COLS |
protected static String |
CUSTOM_FOLDER_PATH |
protected static String |
EXTRA_SETTINGS |
protected FolderNameParser |
folderNameParser |
protected static String |
LAYOUT_DEFINITION |
protected static String |
PATH_SEPARATOR |
protected static String |
ROWS |
protected static String |
SECTIONS |
protected static String |
TYPE |
Constructor and Description |
---|
FlowableFormFieldHandler(FolderNameParser folderNameParser) |
Modifier and Type | Method and Description |
---|---|
protected CoreContentItem |
createParentFolderHierarchy(String scopeId,
String scopeType,
String tenantId,
String folderName,
CoreContentService contentService,
Map<String,CoreContentItem> createdFolderMap) |
void |
enrichFormFields(org.flowable.form.api.FormInfo formInfo) |
protected void |
fillContentItemInfo(CoreContentItem contentItem,
String taskId,
String processInstanceId,
String scopeId,
String scopeType,
String tenantId,
Map<String,CoreContentItem> createdFolderMap,
CoreContentService contentService) |
protected void |
fillDocumentDefinition(String documentDefinitionRef,
CoreContentItem platformContentItem,
CoreContentEngineConfigurationApi contentEngineConfiguration) |
protected boolean |
formHasEditableAttachmentField(org.flowable.form.api.FormInfo formInfo) |
protected String |
getCaseCustomFolderPath(org.flowable.cmmn.api.repository.CaseDefinition caseDefinition) |
protected String |
getCaseTaskCustomFolderPath(String taskDefinitionKey,
String caseDefinitionId,
String scopeId) |
protected org.flowable.cmmn.engine.CmmnEngineConfiguration |
getCmmnEngineConfiguration() |
protected String |
getCmmnExtensionElementValue(String name,
Map<String,List<org.flowable.cmmn.model.ExtensionElement>> extensionElements) |
protected org.flowable.cmmn.api.CmmnRepositoryService |
getCmmnRepositoryService() |
protected org.flowable.cmmn.api.CmmnRuntimeService |
getCmmnRuntimeService() |
protected org.flowable.entitylink.api.EntityLinkService |
getEntityLinkService() |
protected String |
getExtensionElementValue(String name,
Map<String,List<org.flowable.bpmn.model.ExtensionElement>> extensionElements) |
protected Map<String,Object> |
getExtraSettings(Map<String,Object> formField) |
protected String |
getFolderNameForScope(String scopeId,
String scopeType) |
protected List<Map<String,Object>> |
getListObjectByName(String name,
Map<String,Object> formField) |
protected Map<String,Object> |
getMapObjectByName(String name,
Map<String,Object> formField) |
protected String |
getOrCreateParentFolder(CoreContentItem contentItem,
CoreContentService contentService,
Map<String,CoreContentItem> cachedFolders) |
protected String |
getOrCreateParentFolderFromHierarchy(String scopeId,
String scopeType,
String tenantId,
String folderName,
CoreContentService contentService,
Map<String,CoreContentItem> createdFolderMap) |
protected String |
getOrCreateRootFolderId(String tenantId,
CoreContentService contentService,
Map<String,CoreContentItem> createdFolderMap) |
protected String |
getOrCreateWorkFolderId(String tenantId,
CoreContentService contentService,
Map<String,CoreContentItem> createdFolderMap) |
protected org.flowable.entitylink.api.EntityLink |
getParentEntityLink(String scopeId,
String scopeType) |
protected String |
getProcessCustomFolderPath(org.flowable.engine.repository.ProcessDefinition processDefinition) |
protected org.flowable.engine.ProcessEngineConfiguration |
getProcessEngineConfiguration() |
protected String |
getProcessTaskCustomFolderPath(String taskDefinitionKey,
String processDefinitionId,
String processInstanceId) |
protected org.flowable.engine.RepositoryService |
getRepositoryService() |
protected org.flowable.engine.RuntimeService |
getRuntimeService() |
protected String |
getTaskCustomFolderPath(org.flowable.task.api.Task task) |
protected org.flowable.task.service.TaskService |
getTaskService() |
protected void |
handleContentItemJson(com.fasterxml.jackson.databind.JsonNode childNode,
Map<String,CoreContentItem> createdFolderMap,
String taskId,
String processInstanceId,
String scopeId,
String scopeType,
Map<String,Object> variables,
String tenantId,
CoreContentService contentService,
CoreContentEngineConfigurationApi contentEngineConfiguration) |
protected void |
handleFormFieldJson(com.fasterxml.jackson.databind.JsonNode jsonNode,
Map<String,CoreContentItem> createdFolderMap,
String taskId,
String processInstanceId,
String scopeId,
String scopeType,
Map<String,Object> variables,
String tenantId,
CoreContentService contentService,
CoreContentEngineConfigurationApi contentEngineConfiguration) |
void |
handleFormFieldsOnSubmit(org.flowable.form.api.FormInfo formInfo,
String taskId,
String processInstanceId,
String scopeId,
String scopeType,
Map<String,Object> variables,
String tenantId) |
protected void |
internalHandleContentItem(CoreContentItem contentItem,
String taskId,
String processInstanceId,
String scopeId,
String scopeType,
String tenantId,
Map<String,CoreContentItem> createdFolderMap,
org.flowable.content.api.ContentService contentService,
CoreContentEngineConfigurationApi contentEngineConfiguration) |
protected void |
internalHandleContentItemWithMetadataJson(CoreContentItem contentItem,
com.fasterxml.jackson.databind.JsonNode metadataProperties,
String taskId,
String processInstanceId,
String scopeId,
String scopeType,
String tenantId,
Map<String,CoreContentItem> createdFolderMap,
org.flowable.content.api.ContentService contentService,
CoreContentEngineConfigurationApi contentEngineConfiguration) |
boolean |
isWorkFolder(CoreContentItem contentItem) |
protected boolean |
lookForAttachmentFields(Map<String,Object> formField) |
protected boolean |
lookForAttachmentFieldsInExtraSettingsMap(Map<String,Object> extraSettings) |
protected void |
processExtraSettingsMap(Map<String,Object> extraSettings) |
protected void |
processFormFieldMap(Map<String,Object> formField) |
protected static final String EXTRA_SETTINGS
protected static final String LAYOUT_DEFINITION
protected static final String SECTIONS
protected static final String ROWS
protected static final String COLS
protected static final String TYPE
protected static final String AUTOUPLOAD
protected static final String CUSTOM_FOLDER_PATH
protected static final String PATH_SEPARATOR
protected FolderNameParser folderNameParser
public FlowableFormFieldHandler(FolderNameParser folderNameParser)
public void handleFormFieldsOnSubmit(org.flowable.form.api.FormInfo formInfo, String taskId, String processInstanceId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId)
handleFormFieldsOnSubmit
in interface org.flowable.form.api.FormFieldHandler
protected void handleFormFieldJson(com.fasterxml.jackson.databind.JsonNode jsonNode, Map<String,CoreContentItem> createdFolderMap, String taskId, String processInstanceId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, CoreContentService contentService, CoreContentEngineConfigurationApi contentEngineConfiguration)
protected void handleContentItemJson(com.fasterxml.jackson.databind.JsonNode childNode, Map<String,CoreContentItem> createdFolderMap, String taskId, String processInstanceId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, CoreContentService contentService, CoreContentEngineConfigurationApi contentEngineConfiguration)
protected void internalHandleContentItem(CoreContentItem contentItem, String taskId, String processInstanceId, String scopeId, String scopeType, String tenantId, Map<String,CoreContentItem> createdFolderMap, org.flowable.content.api.ContentService contentService, CoreContentEngineConfigurationApi contentEngineConfiguration)
protected void internalHandleContentItemWithMetadataJson(CoreContentItem contentItem, com.fasterxml.jackson.databind.JsonNode metadataProperties, String taskId, String processInstanceId, String scopeId, String scopeType, String tenantId, Map<String,CoreContentItem> createdFolderMap, org.flowable.content.api.ContentService contentService, CoreContentEngineConfigurationApi contentEngineConfiguration)
public void enrichFormFields(org.flowable.form.api.FormInfo formInfo)
enrichFormFields
in interface org.flowable.form.api.FormFieldHandler
protected void fillContentItemInfo(CoreContentItem contentItem, String taskId, String processInstanceId, String scopeId, String scopeType, String tenantId, Map<String,CoreContentItem> createdFolderMap, CoreContentService contentService)
protected String getOrCreateParentFolder(CoreContentItem contentItem, CoreContentService contentService, Map<String,CoreContentItem> cachedFolders)
protected String getOrCreateParentFolderFromHierarchy(String scopeId, String scopeType, String tenantId, String folderName, CoreContentService contentService, Map<String,CoreContentItem> createdFolderMap)
protected CoreContentItem createParentFolderHierarchy(String scopeId, String scopeType, String tenantId, String folderName, CoreContentService contentService, Map<String,CoreContentItem> createdFolderMap)
protected void fillDocumentDefinition(String documentDefinitionRef, CoreContentItem platformContentItem, CoreContentEngineConfigurationApi contentEngineConfiguration)
protected boolean formHasEditableAttachmentField(org.flowable.form.api.FormInfo formInfo)
protected org.flowable.entitylink.api.EntityLink getParentEntityLink(String scopeId, String scopeType)
protected String getCaseCustomFolderPath(org.flowable.cmmn.api.repository.CaseDefinition caseDefinition)
protected String getProcessCustomFolderPath(org.flowable.engine.repository.ProcessDefinition processDefinition)
protected String getTaskCustomFolderPath(org.flowable.task.api.Task task)
protected String getProcessTaskCustomFolderPath(String taskDefinitionKey, String processDefinitionId, String processInstanceId)
protected String getCaseTaskCustomFolderPath(String taskDefinitionKey, String caseDefinitionId, String scopeId)
protected String getOrCreateWorkFolderId(String tenantId, CoreContentService contentService, Map<String,CoreContentItem> createdFolderMap)
protected String getOrCreateRootFolderId(String tenantId, CoreContentService contentService, Map<String,CoreContentItem> createdFolderMap)
protected boolean lookForAttachmentFieldsInExtraSettingsMap(Map<String,Object> extraSettings)
protected String getCmmnExtensionElementValue(String name, Map<String,List<org.flowable.cmmn.model.ExtensionElement>> extensionElements)
protected String getExtensionElementValue(String name, Map<String,List<org.flowable.bpmn.model.ExtensionElement>> extensionElements)
protected Map<String,Object> getMapObjectByName(String name, Map<String,Object> formField)
protected List<Map<String,Object>> getListObjectByName(String name, Map<String,Object> formField)
public boolean isWorkFolder(CoreContentItem contentItem)
protected org.flowable.engine.RuntimeService getRuntimeService()
protected org.flowable.cmmn.api.CmmnRuntimeService getCmmnRuntimeService()
protected org.flowable.engine.RepositoryService getRepositoryService()
protected org.flowable.cmmn.api.CmmnRepositoryService getCmmnRepositoryService()
protected org.flowable.entitylink.api.EntityLinkService getEntityLinkService()
protected org.flowable.task.service.TaskService getTaskService()
protected org.flowable.engine.ProcessEngineConfiguration getProcessEngineConfiguration()
protected org.flowable.cmmn.engine.CmmnEngineConfiguration getCmmnEngineConfiguration()
Copyright © 2019. All rights reserved.