问题一:
java.util.LinkedHashMap cannot be cast to org.flowable.form.api.FormModel
在获取入参的表单信息时,代码:
FormInfo formInfo = (FormInfo)taskPo.getFormInfo();
报错:
java.util.LinkedHashMap cannot be cast to org.flowable.form.api.FormModel
解决方法:
String postr=JSONObject.toJSONString(taskPo.getFormInfo());
FormInfo formInfo= JSONObject.parseObject(postr,FormInfo.class);
问题二:
org.flowable.form.engine.FlowableFormValidationException: Form field description is required, but no value was found
flowable任务节点提交表单数据是有校验的,对于必填字段会有必填验证。在源码GetVariablesFromFormSubmissionCmd 于必填字段会有必填验证,体现在以下地方:
public Map<String, Object> execute(CommandContext commandCont