Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加自定义表单字段后保存报错Error: unknown type <activiti:FormField> #70

Open
yaximi111 opened this issue Jan 9, 2025 · 4 comments

Comments

@yaximi111
Copy link

image

@yaximi111 yaximi111 changed the title 添加自定义表单字段后保存报错 添加自定义表单字段后保存报错Error: unknown type <activiti:FormField> Jan 9, 2025
@miyuesc
Copy link
Owner

miyuesc commented Jan 9, 2025

activity 表单配置和 flowable、camunda 的配置有区别,需要自行适配

@yaximi111
Copy link
Author

activity 表单配置和 flowable、camunda 的配置有区别,需要自行适配
我看activity.json中的表单字段是FormProperty,然后再panelUtil中使用的是FormData
image
但是在表单保存时写的是:FormField
image
我不确定三者是否指同一个属性,因为activity.json只存在FormProperty,能解答下吗

@yaximi111
Copy link
Author

activity 表单配置和 flowable、camunda 的配置有区别,需要自行适配

还有一个问题在创建表单后保存xml或者json写入的值是字符串,应该需要将表单值转成string保存然后在解析的时候再转一下吧,写入转str的代码应该加载哪里呢
image

@miyuesc
Copy link
Owner

miyuesc commented Jan 9, 2025

你可以先找一个camunda 对应的表单配置来看看 xml 结构,然后再想怎么写代码。

可以参考我以前写的文章:https://juejin.cn/column/6964382482007490590

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants