当前位置:网站首页>Activiti部署文件时,报错org.activiti.bpmn.exceptions.XMLException: cvc-complex-type.2.4.a: 发现了以元素 ‘process‘
Activiti部署文件时,报错org.activiti.bpmn.exceptions.XMLException: cvc-complex-type.2.4.a: 发现了以元素 ‘process‘
2022-08-06 16:08:00 【程序小媛!】
记录今天使用activiti 定义部署流程时,act_re_deployment 有数据,而act_re_procdef没有数据
报错误信息如下:
org.activiti.bpmn.exceptions.XMLException: cvc-complex-type.2.4.a: 发现了以元素 ‘process’ 开头的无效内容。
具体代码如下:
//1、获取ProcessEngine对象
ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();
//2、获取RepositoryService进行部署
RepositoryService service = engine.getRepositoryService();
//3、使用RepositoryService进行部署操作
Deployment deployment = service.createDeployment()
.addClasspathResource("bpmn/evection.bpmn") //添加bpmn资源
.addClasspathResource("bpmn/evection.png")
.name("出差申请流程")
.deploy();
//输出流程的相关信息
System.out.println("流程的ID:"+deployment.getId());
System.out.println("流程的名字:"+deployment.getName());
解决方法:加上 .disableSchemaValidation()方法,禁止校验文件
边栏推荐
- Detailed explanation of IK tokenizer
- 口碑极佳的7个公众号!
- ViewDataBinding找不到自定义view的类
- [GO]go-micro介绍
- Likou 07 - Linked List Intersection - Linked List & Hash Table Storage & Double Pointer
- cmd command line tool
- Kotlin 协程之取消与异常处理探索之旅(上)
- Neuron Newsletter 2022-07|新增非 A11 驱动、即将支持 OPC DA
- HJY-1A18D电压继电器 导轨安装
- Coggle 30 Days of ML【打卡】广告-信息流跨域ctr预估
猜你喜欢

13. Implementation of paging loading datasets for SAP ABAP OData service (Paging)

学会make/makefile基本用法

机器视觉需要学什么?学习机器视觉需要掌握哪些知识?

Another proof of the strength of China's manufacturing, the number of Chinese companies in the top 500 is the largest

HJLL-99/A数字零序电流继电器

Ant Group builds the industry's first full-picture risk control and explains the technical architecture in detail for the first time

抖音 滑块验证方案 s_v_web_id 参数分析

LeetCode:205. 同构字符串————简单

ViewDataBinding找不到自定义view的类

众昂矿业:氟化工企业业绩亮眼,萤石需求加大
随机推荐
SOFA Weekly|Meetup 广州站参会指南、本周 QA、本周 Contributor
Douyin slider verification scheme s_v_web_id parameter analysis
直播声卡怎么做CE认证
Douyin slider verification scheme s_v_web_id parameter analysis
Auto.js 如何把图片和脚本一起打包,或者打包多个脚本
RTU远程终端控制系统S274
LeetCode:21. 合并两个有序链表————简单
预解析案例
[2022CISCN]初赛 复现
云原生正在吞噬一切,开发者该如何应对?
cmd命令行工具
Helm deployment ES and Kibana (default open SSL)
具有列表功能的有序字典实现 ListOrderedDict
[C Supplement] Precautions for two-dimensional arrays as formal parameters
力扣07-链表相交——链表&哈希表存储&双指针
nvidia-smi报错(重装Nvidia驱动)
启牛帮开通的中信证券VIP账户是安全的吗?怎么开
ERP为化工企业的采购决策提供技术支持
##mysql数据库的安装部署
Another proof of the strength of China's manufacturing, the number of Chinese companies in the top 500 is the largest