feat(REQ-4196) - 调整引擎表单项的值为 Map 时,优先转成 JSON 格式
This commit is contained in:
parent
f1dda0be16
commit
faa8aa24f7
@ -94,7 +94,7 @@ public class CustomCreateFormInstanceCmd extends CreateFormInstanceCmd {
|
||||
|
||||
} else if (variableValue instanceof LocalDate) {
|
||||
valuesNode.put(fieldId, ((LocalDate) variableValue).toString());
|
||||
} else if (variableValue instanceof Collection) {
|
||||
} else if (variableValue instanceof Collection || variableValue instanceof Map) {
|
||||
if (CollectionUtils.isEmpty((Collection<?>) variableValue)) {
|
||||
variableValue = Collections.emptyList();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user