jbpm子流程定义文件加载问题

在分两次加载的情况下,jbpm子流程定义文件加载顺序:必须先加载子流程,后加载主流程,否则会出现如下的错误:

org.jbpm.JbpmException: can't create a process instance when processDefinition is null
at org.jbpm.graph.exe.ProcessInstance.<init>(ProcessInstance.java:127) <br> at org.jbpm.graph.exe.ProcessInstance.<init>(ProcessInstance.java:96) <br> at org.jbpm.graph.exe.Token.createSubProcessInstance(Token.java:723) <br> at org.jbpm.graph.node.ProcessState.execute(ProcessState.java:175) <br> at org.jbpm.graph.def.Node.enter(Node.java:388)</init></init>

你可能感兴趣的:(java,jbpm)