jBPM4版本下,定义了下面的一个流程。
<?xml version="1.0" encoding="UTF-8"?>
<process name="SAMPLE" xmlns="http://jbpm.org/4/jpdl">
<start g="16,18,48,48">
<transition to="evaluate"/>
</start>
<state g="128,16,92,52" name="evaluate">
<transition to="wire money"/>
</state>
<state g="280,19,92,52" name="wire money">
<transition to="archive"/>
</state>
<state g="420,17,92,52" name="archive">
<transition to="end"/>
</state>
<end g="561,20,48,48" name="end"/>
</process>
进行发布时,出现如下错误信息:
20:44:49,703 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.DeployCmd@107108e
org.jbpm.api.JbpmException:
error: no start activity in process
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:169)
后来,检查发现,去掉
<process name="SAMPLE" xmlns="http://jbpm.org/4/jpdl">
里面的xmlns="http://jbpm.org/4/jpdl" 项,发布即可成功。