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

当选择流程引擎是activiti时,报错unknown type <activiti:FormData> #28

Open
xiaonanfeng opened this issue Jan 23, 2022 · 2 comments

Comments

@xiaonanfeng
Copy link

vue.runtime.esm.js?2b0e:1888

vue.runtime.esm.js?2b0e:619

   [Vue warn]: Error in nextTick: "Error: unknown type <activiti:FormData>"

found in

---> at package/penal/form/ElementForm.vue
at packages/collapse/src/collapse-item.vue
at packages/collapse/src/collapse.vue
at package/penal/PropertiesPanel.vue


——————————————————————————————
Error: unknown type activiti:FormData
at Registry.mapTypes (index.esm.js?8475:518:1)
at Registry.getEffectiveDescriptor (index.esm.js?8475:543:1)
at BpmnModdle.Moddle.getType (index.esm.js?8475:768:1)
at BpmnModdle.Moddle.create (index.esm.js?8475:736:1)
at VueComponent.resetFormList (ElementForm.vue?d075:204:1)
at VueComponent.eval (ElementForm.vue?d075:191:1)
at Array.eval (vue.runtime.esm.js?2b0e:1980:1)
at flushCallbacks (vue.runtime.esm.js?2b0e:1906:1)

——————————————————————————————————

@miyuesc miyuesc pinned this issue Jan 24, 2022
@miyuesc miyuesc unpinned this issue Jan 24, 2022
@1096362029
Copy link

如果是activiti要把formData改成FormProperty,当然,你也可以加个判断条件是否是activiti。

在此文件 bpmn-process-designer/blob/main/package/designer/plugins/descriptor/activitiDescriptor.json 中,可以找到名称为FormProperty的节点

@1096362029
Copy link

const Field = window.bpmnInstances.moddle.create(${this.prefix}:FormField, { id, type, label });
改成
const Field = window.bpmnInstances.moddle.create(${this.prefix}:FormProperty, { id, type, label });
我这里并没有用到表单功能。具体对不对,请自测

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