当前位置:网站首页>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
边栏推荐
- Caused by:org. gradle. api. internal. plugins . PluginApplicationException: Failed to apply plugin
- Full link voltage measurement: building three models
- 模拟卷Leetcode【普通】1405. 最长快乐字符串
- 模拟卷Leetcode【普通】1091. 二进制矩阵中的最短路径
- Simulation volume leetcode [general] 1143 Longest common subsequence
- Customize the gateway filter factory on the specified route
- B - The Suspects
- On weak network test of special test
- LeetCode 729. 我的日程安排表 I
- [eolink] PC client installation
猜你喜欢
把el-tree选中的数组转换为数组对象
Manage configuration using Nacos
SourceInsight Chinese garbled
曼哈顿距离与曼哈顿矩形-打印回字型矩阵
win10无法操作(删除、剪切)文件
The whole process realizes the single sign on function and the solution of "canceltoken" of undefined when the request is canceled
曼哈顿距离和-打印菱形
Caused by:org. gradle. api. internal. plugins . PluginApplicationException: Failed to apply plugin
E - 食物链
F - True Liars (种类并查集+DP)
随机推荐
D - How Many Answers Are Wrong
把el-tree选中的数组转换为数组对象
Win10 cannot operate (delete, cut) files
Simulation volume leetcode [general] 1414 The minimum number of Fibonacci numbers with a sum of K
LeetCode 739. 每日温度
Simulation volume leetcode [general] 1218 Longest definite difference subsequence
基于JEECG-BOOT的list页面的地址栏参数传递
在JEECG-boot代码生成的基础上修改list页面(结合自定义的组件)
MFC dynamically creates dialog boxes and changes the size and position of controls
On weak network test of special test
【Postman】Collections配置运行过程
Simulation volume leetcode [general] 1219 Golden Miner
模拟卷Leetcode【普通】1249. 移除无效的括号
调用链监控Zipkin、sleuth搭建与整合
How to extract login cookies when JMeter performs interface testing
Detailed explanation of P problem, NP problem, NPC problem and NP hard problem
Simulation volume leetcode [general] 1061 Arrange the smallest equivalent strings in dictionary order
模拟卷Leetcode【普通】1091. 二进制矩阵中的最短路径
Technology sharing | common interface protocol analysis
MFC 动态创建的对话框及改变控件的大小和位置