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

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

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

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