当前位置:网站首页>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
边栏推荐
- Is the test cycle compressed? Teach you 9 ways to deal with it
- 全程实现单点登录功能和请求被取消报错“cancelToken“ of undefined的解决方法
- 【Tera Term】黑猫带你学TTL脚本——嵌入式开发中串口自动化神技能
- Manhattan distance and Manhattan rectangle - print back font matrix
- ESP32 ESP-IDF看门狗TWDT
- Aike AI frontier promotion (2.13)
- php使用redis实现分布式锁
- MFC on the conversion and display of long string unsigned char and CString
- LeetCode 731. 我的日程安排表 II
- Data type of MySQL
猜你喜欢
【无App Push 通用测试方案
G - Supermarket
数据库隔离级别
[postman] test script writing and assertion details
[postman] collections configuration running process
基于JEECG-BOOT的list页面的地址栏参数传递
[wechat applet] build a development tool environment
selenium源码通读·9 |DesiredCapabilities类分析
How to extract login cookies when JMeter performs interface testing
MFC关于长字符串unsigned char与CString转换及显示问题
随机推荐
MFC 动态创建的对话框及改变控件的大小和位置
使用Nacos管理配置
这些年用Keil遇到的坑
Simulation volume leetcode [general] 1314 Matrix area and
二维码的前世今生 与 六大测试点梳理
Simulation volume leetcode [general] 1296 Divide an array into a set of consecutive numbers
Redis core technology and basic architecture of actual combat: what does a key value database contain?
Career advancement Guide: recommended books for people in big factories
Simulation volume leetcode [general] 1218 Longest definite difference subsequence
Simulation volume leetcode [general] 1249 Remove invalid parentheses
[no app push general test plan
Is the test cycle compressed? Teach you 9 ways to deal with it
F - true liars (category and search set +dp)
[postman] dynamic variable (also known as mock function)
10M25DCF484C8G(FPGA) AMY-6M-0002 BGA GPS模块
JWT-JSON WEB TOKEN
[postman] collections - run the imported data file of the configuration
Database isolation level
[API interface tool] Introduction to postman interface
模拟卷Leetcode【普通】1218. 最长定差子序列