`

Caused by: org.activiti.engine.ActivitiException: couldn't parse 'XXX.bpmn20.xml

 
阅读更多
写道
Caused by: org.activiti.engine.ActivitiException: couldn't parse 'XXX.bpmn20.xml': Content is not allowed in prolog.
at org.activiti.engine.impl.util.xml.Parse.execute(Parse.java:136)
at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:160)
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:76)
at org.activiti.engine.impl.db.DbRepositorySession.deploy(DbRepositorySession.java:65)
at org.activiti.engine.impl.db.DbRepositorySession.resolveProcessDefinition(DbRepositorySession.java:195)

 

 

因为自己在浏览器中copybpmn20.xml定义时 ,把每行前面的 - 也copy过来了 ,去掉就好了

 

写道
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <definitions targetNamespace="adhoc" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:ns3="http://activiti.org/bpmn" xmlns:ns5="http://www.omg.org/spec/DD/20100524/DC" xmlns:ns4="http://www.omg.org/spec/DD/20100524/DI" xmlns:ns6="http://www.omg.org/spec/BPMN/20100524/DI">
- <process isExecutable="false" name="Expense process" id="adhoc_Expense_process">
<documentation id="adhoc_Expense_process_documentation">Example process created using Activiti KickStart</documentation>
<startEvent ns3:initiator="initiator" id="theStart" />
<sequenceFlow targetRef="task_1" sourceRef="theStart" id="flow_1" />
- <userTask name="Request expense refund" id="task_1">
<documentation id="task_1_documentation">Request the refund of an expense related to company business.</documentation>
- <extensionElements>
<ns3:formProperty required="true" type="long" name="Amount" id="Amount" />
<ns3:formProperty required="false" type="string" name="Motivation" id="Motivation" />
</extensionElements>
- <humanPerformer id="sid-657391c0-67aa-48d9-a265-5f8647991926_humanPerformer">
- <resourceAssignmentExpression id="sid-657391c0-67aa-48d9-a265-5f8647991926_humanPerformer_assignmentExpression">
<formalExpression id="sid-657391c0-67aa-48d9-a265-5f8647991926_humanPerformer_formalExpressions">${initiator}</formalExpression>
</resourceAssignmentExpression>

 

改后

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<definitions targetNamespace="adhoc"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 
  xmlns:ns3="http://activiti.org/bpmn" 
  xmlns:ns5="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:ns4="http://www.omg.org/spec/DD/20100524/DI" 
  xmlns:ns6="http://www.omg.org/spec/BPMN/20100524/DI">
	<process isExecutable="false" name="Expense process" id="adhoc_Expense_process">
		<documentation id="adhoc_Expense_process_documentation"> Example process created using Activiti KickStart</documentation>
		<startEvent ns3:initiator="initiator" id="theStart" />
		<sequenceFlow targetRef="task_1" sourceRef="theStart" id="flow_1" />
		<userTask name="Request expense refund" id="task_1">
			<documentation id="task_1_documentation">Request the refund of an expense
				related to company business.</documentation>
			<extensionElements>

 

 www.ibuyincn.com

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics