Class FormModelUtil
java.lang.Object
com.flowable.form.engine.impl.util.FormModelUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddActionButtonFormVariable(Map<String, List<FormVariable>> formFieldValuesToTypes, Map<String, Object> formField, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, boolean writableFlag, boolean enabledFlag, boolean ignoreFlag) static voidaddFormVariablesToMap(Map<String, List<FormVariable>> multiValueMap, String key, List<FormVariable> values) static voidaddFormVariableToMap(Map<String, List<FormVariable>> multiValueMap, String key, FormVariable formVariable) protected static voidaddRestButtonFormVariable(String formFieldVariableName, Map<String, List<FormVariable>> formFieldValuesToTypes, Map<String, Object> formField, boolean currentWritableFlag, boolean currentEnabledFlag, boolean currentIgnoredFlag) protected static voidaddServiceButtonFormVariable(Map<String, List<FormVariable>> formFieldValuesToTypes, Map<String, Object> formField, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, boolean writableFlag, boolean enabledFlag, boolean ignoredFlag) protected static voidaddServiceModelParameterMapping(Map<String, Object> serviceModel, String outputMappingsName, Map<String, List<FormVariable>> formFieldValuesToTypes, Map<String, Object> formField, boolean writableFlag, boolean enabledFlag, boolean ignoreFlag) static voidcopyFormVariableMap(Map<String, List<FormVariable>> sourceMap, Map<String, List<FormVariable>> targetMap) extractAllowedFileTypes(String fieldId, FlowableFormModel formModel) protected static Map<String, List<FormVariable>> extractFormFieldValuesToTypesFromLayoutDefinition(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> layoutDefinition, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) static Map<String, List<FormVariable>> extractFormVariables(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, FlowableFormModel formModel, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) Extract a map with the variable name and their info.protected static Map<String, List<FormVariable>> extractFormVariables(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, List<Map<String, Object>> formFields, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) static booleanextraSettingsHasFileType(Map<String, Object> extraSettings) findFormField(String formFieldId, FlowableFormModel formModel) findFormFieldInLayoutDefinition(String formFieldId, Map<String, Object> layoutDefinition) protected static booleangetBooleanValue(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Object fieldValue) protected static booleangetEnabledFlagWithHierarchy(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> formField, boolean isParentFlag, boolean defaultFlagValue) getExtraSettings(Map<String, Object> formField) protected static StringgetFormFieldType(Map<String, Object> formField) protected static StringgetFormFieldVariableName(Map<String, Object> formField) protected static booleangetIgnoredFlagWithHierarchy(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> formField, boolean isParentFlag, boolean defaultFlagValue) protected static StringThe service button allows the variable name to be without bracketsgetListObjectByName(String name, Map<String, Object> formField) getMapObjectByName(String name, Map<String, Object> formField) getOrComputeExtraSettings(Map<String, Object> formField) protected static StringgetStringObjectByName(String name, Map<String, Object> map) protected static booleanisEnabledInHierarchy(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> formField, boolean isParentEnabled) protected static booleanisFrontEndExpressionValue(String value) protected static booleanisIgnoredInHierarchy(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> formField, boolean isParentWritable) protected static booleanisRequired(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> formField) protected static booleanisWritableInHierarchy(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> formField, boolean isParentWritable) protected static voidpopulateFormFieldValuesToTypes(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, List<FormVariable>> formFieldValuesToTypes, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, Map<String, Object> formField, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) protected static StringstripFeExpression(String expression)
-
Field Details
-
ID
- See Also:
-
EXTRA_SETTINGS
- See Also:
-
LAYOUT_DEFINITION
- See Also:
-
BUTTON_DEFINITIONS
- See Also:
-
EXPANDABLE_PANEL
- See Also:
-
CELL_DEFINITION
- See Also:
-
CONFIG
- See Also:
-
CHILDREN
- See Also:
-
SECTIONS
- See Also:
-
COLUMNS
- See Also:
-
ROWS
- See Also:
-
COLS
- See Also:
-
COMPONENT
- See Also:
-
TYPE
- See Also:
-
NUMBER_TYPE
- See Also:
-
VALUE
- See Also:
-
ITEMS
- See Also:
-
FILE_SERVICE
- See Also:
-
UPLOAD_URL
- See Also:
-
UPDATE_FILE_URL
- See Also:
-
AUTOUPLOAD
- See Also:
-
QUERY_URL
- See Also:
-
INVOCATION_RESULT_VALUE
- See Also:
-
CONTENT_MODEL_URL
- See Also:
-
ALLOWED_FILE_TYPES
- See Also:
-
HAS_FILE_TYPE
- See Also:
-
SERVICE_MODEL
- See Also:
-
INVOKE_SERVICE_URL
- See Also:
-
USER_EVENT_LISTENER_ID
- See Also:
-
CUSTOM_COMPONENT_TAG
- See Also:
-
CUSTOM_COMPONENT_PROJECT
- See Also:
-
CUSTOM_COMPONENT_URL
- See Also:
-
-
Method Details
-
findFormField
-
findFormField
-
findFormFieldInLayoutDefinition
-
findFormFieldInColumns
-
extractFormVariables
public static Map<String,List<FormVariable>> extractFormVariables(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, FlowableFormModel formModel, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) Extract a map with the variable name and their info.- Parameters:
formModel- the model from which variables need to be extractedisParentEnabled- is parent formField enabled flag- Returns:
- map between the variable name and it's representation
-
addFormVariableToMap
public static void addFormVariableToMap(Map<String, List<FormVariable>> multiValueMap, String key, FormVariable formVariable) -
addFormVariablesToMap
public static void addFormVariablesToMap(Map<String, List<FormVariable>> multiValueMap, String key, List<FormVariable> values) -
copyFormVariableMap
public static void copyFormVariableMap(Map<String, List<FormVariable>> sourceMap, Map<String, List<FormVariable>> targetMap) -
populateFormFieldValuesToTypes
protected static void populateFormFieldValuesToTypes(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, List<FormVariable>> formFieldValuesToTypes, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, Map<String, Object> formField, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) -
addRestButtonFormVariable
-
addServiceButtonFormVariable
-
addServiceModelParameterMapping
-
addActionButtonFormVariable
-
isEnabledInHierarchy
-
isWritableInHierarchy
-
isIgnoredInHierarchy
-
isRequired
-
getEnabledFlagWithHierarchy
-
getIgnoredFlagWithHierarchy
-
getBooleanValue
protected static boolean getBooleanValue(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Object fieldValue) -
isFrontEndExpressionValue
-
stripFeExpression
-
extractFormVariables
protected static Map<String,List<FormVariable>> extractFormVariables(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, List<Map<String, Object>> formFields, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) -
extractFormFieldValuesToTypesFromLayoutDefinition
protected static Map<String,List<FormVariable>> extractFormFieldValuesToTypesFromLayoutDefinition(org.flowable.common.engine.api.variable.VariableContainer submittedValuesContainer, Map<String, Object> layoutDefinition, Map<String, List<FormVariable>> rootFormFieldValuesToTypes, boolean isParentWritable, boolean isParentEnabled, boolean isParentIgnored) -
getFormFieldType
-
getFormFieldVariableName
-
getInvocationResultVariableName
The service button allows the variable name to be without brackets -
getExtraSettings
-
getOrComputeExtraSettings
-
getMapObjectByName
-
getListObjectByName
-
getStringObjectByName
-
extraSettingsHasFileType
-
extractAllowedFileTypes
-