当前位置:网站首页>org. activiti. bpmn. exceptions. XMLException: cvc-complex-type. 2.4. a: Invalid content beginning with element 'outgoing' was found
org. activiti. bpmn. exceptions. XMLException: cvc-complex-type. 2.4. a: Invalid content beginning with element 'outgoing' was found
2022-07-06 06:22:00 【Do not let it rot】
Preface
Instantiate deployment today Activiti The process is saved
The error message is as follows
org.activiti.bpmn.exceptions.XMLException: cvc-complex-type.2.4.a: Found the element ‘outgoing’ Invalid content at the beginning . Should use ‘{“http://www.omg.org/spec/BPMN/20100524/MODEL”:documentation, “http://www.omg.org/spec/BPMN/20100524/MODEL”:extensionElements, “http://www.omg.org/spec/BPMN/20100524/MODEL”:auditing, “http://www.omg.org/spec/BPMN/20100524/MODEL”:monitoring, “http://www.omg.org/spec/BPMN/20100524/MODEL”:categoryValueRef, “http://www.omg.org/spec/BPMN/20100524/MODEL”:incoming, “http://www.omg.org/spec/BPMN/20100524/MODEL”:outgoing, “http://www.omg.org/spec/BPMN/20100524/MODEL”:property, “http://www.omg.org/spec/BPMN/20100524/MODEL”:dataOutput, “http://www.omg.org/spec/BPMN/20100524/MODEL”:dataOutputAssociation, “http://www.omg.org/spec/BPMN/20100524/MODEL”:outputSet, “http://www.omg.org/spec/BPMN/20100524/MODEL”:eventDefinition, “http://www.omg.org/spec/BPMN/20100524/MODEL”:eventDefinitionRef}’ One start .

Have a look at the online solutions , There are two solutions found
Solution 1
Call when deploying the process disableSchemaValidation() Method , Just prohibit verifying files

Paste all the code directly
package com.wyh.test;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.Deployment;
import org.junit.Test;
/** * @program: Activiti01 * @description: Test process deployment * @author: Wei Yihe * @createDate: 2022-07-04 23:27 **/
public class ActivitiDemo {
// Test process deployment
@Test
public void testDeployment(){
// 1. establish ProcessEngine
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
// 2. Use ProcessEngine Get the service of operating the database (RepositoryService)
RepositoryService repositoryService = processEngine.getRepositoryService();
// 3. Use RepositoryService Process deployment , Define the name of a process , hold bpmn Document and png Deploy files to the database
Deployment deploy = repositoryService.createDeployment()
.name(" Travel application process ")// Process name
.addClasspathResource("bpmn/evection.bpmn") // Resource file bpmn The configuration file
.addClasspathResource("bpmn/evection.png") // Resource file png flow chart
.disableSchemaValidation()// It is forbidden to verify files
.deploy();
// 4. Output deployment information
System.out.println(" Process deployed ID:"+deploy.getId());
System.out.println(" The name of the process deployment :"+deploy.getName());
}
}
Solution 2
Find the to deploy bpmn file , use notepad++ open , Or turn to xml file , Put the xmlns=" " Delete , This may be a plug-in and Idea Incompatible problems lead to
<!-- hold process In the tag xmlns="" Just delete it , This may be a plug-in and Idea Incompatible problems lead to -->
<process xmlns="" id="myProcess_2" isClosed="false" isExecutable="true" name=" Reimbursement process " processType="None">
Both methods can be tested personally , I recommend the first one , A simple command , One line of code 
边栏推荐
- Simulation volume leetcode [general] 1296 Divide an array into a set of consecutive numbers
- 基于JEECG-BOOT制作“左树右表”交互页面
- 模拟卷Leetcode【普通】1405. 最长快乐字符串
- 模拟卷Leetcode【普通】1447. 最简分数
- 在uni-app中使用腾讯视频插件播放视频
- MFC 动态创建的对话框及改变控件的大小和位置
- CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全
- 黑猫带你学eMMC协议第10篇:eMMC读写操作详解(read & write)
- Cannot create PoolableConnectionFactory (Could not create connection to database server. 错误
- Hypothesis testing learning notes
猜你喜欢
![[postman] the monitors monitoring API can run periodically](/img/9e/3f6150290b868fc1160b6b01d0857e.png)
[postman] the monitors monitoring API can run periodically

Detailed explanation of P problem, NP problem, NPC problem and NP hard problem

LeetCode 732. 我的日程安排表 III

把el-tree选中的数组转换为数组对象

Data type of MySQL

Basic knowledge of MySQL

The whole process realizes the single sign on function and the solution of "canceltoken" of undefined when the request is canceled

Pat (Grade B) 2022 summer exam

10m25dcf484c8g (FPGA) amy-6m-0002 BGA GPS module

Past and present lives of QR code and sorting out six test points
随机推荐
在uni-app中使用腾讯视频插件播放视频
Career advancement Guide: recommended books for people in big factories
Redis core technology and basic architecture of actual combat: what does a key value database contain?
对数据安全的思考(转载)
Qt:无法定位程序输入点XXXXX于动态链接库。
二维码的前世今生 与 六大测试点梳理
基于JEECG-BOOT的list页面的地址栏参数传递
JWT-JSON WEB TOKEN
JDBC Requset 对应内容及功能介绍
Thoughts on data security (Reprint)
【MQTT从入门到提高系列 | 01】从0到1快速搭建MQTT测试环境
Réflexions sur la sécurité des données (réimpression)
(中)苹果有开源,但又怎样呢?
leetcode 24. Exchange the nodes in the linked list in pairs
Selenium source code read through · 9 | desiredcapabilities class analysis
MFC关于长字符串unsigned char与CString转换及显示问题
【微信小程序】搭建开发工具环境
JMeter做接口测试,如何提取登录Cookie
Simulation volume leetcode [general] 1091 The shortest path in binary matrix
【Postman】Collections配置运行过程