首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > Ruby Rails >

jbpm4流程发布有关问题 1) error: no start activity in process

2012-11-06 
jbpm4流程发布问题 1) error: no start activity in process在jbpm4.0 beta2版本中,发布流程时报如下错误:

jbpm4流程发布问题 1) error: no start activity in process


在jbpm4.0 beta2版本中,发布流程时报如下错误:

15:42:41,894 INF | [RepositorySessionImpl] errors during deployment of deployment(1):
? error: no start activity in process
### EXCEPTION ###########################################
15:42:41,894 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.DeployCmd@2af8f5
org.jbpm.api.JbpmException:
? error: no start activity in process
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:169)
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:142)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:58)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:1)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:81)
at Test.main(Test.java:29)
### EXCEPTION ###########################################
Exception in thread "main" org.jbpm.api.JbpmException:
? error: no start activity in process
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:169)
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:142)
at org.jbpm.pvm.internal.repository.RepositorySessionImpl.deploy(RepositorySessionImpl.java:58)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:47)
at org.jbpm.pvm.internal.cmd.DeployCmd.execute(DeployCmd.java:1)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:81)
at Test.main(Test.java:29)

而发布jbpm包里面的示例流程没有问题。
跟源码跟了一天多没有发现错误原因,最后发现原来是在jpdl文件中
<process name="TaskAssignee" xmlns="http://jbpm.org/4/jpdl">
中xmlns声明的原因,去掉这个声明就没有问题了。

?

热点排行