Hmmm... I am using 3.0 (not the alpha).

I get this error when trying to get to the sub process:

  | java.lang.NullPointerException: can't create a process instance when 
processDefinition is null
  |     at org.jbpm.graph.exe.ProcessInstance.<init>(ProcessInstance.java:60)
  |     at org.jbpm.graph.node.ProcessState.execute(ProcessState.java:86)
  |     at org.jbpm.graph.def.Node.enter(Node.java:284)
  |     at org.jbpm.graph.def.Transition.take(Transition.java:92)
  |     at org.jbpm.graph.def.Node.leave(Node.java:349)
  |     at org.jbpm.graph.def.Node.leave(Node.java:313)
  |     at com.cdhps.jbpm.NodePersist.transition(NodePersist.java:304)
  |     at com.cdhps.jbpm.NodePersist.execute(NodePersist.java:216)
  |     at org.jbpm.graph.def.Action.execute(Action.java:79)
  |     at org.jbpm.graph.def.Node.execute(Node.java:295)
  |     at org.jbpm.graph.def.Node.enter(Node.java:284)
  |     at org.jbpm.graph.def.Transition.take(Transition.java:92)
  |     at org.jbpm.graph.def.Node.leave(Node.java:349)
  |     at org.jbpm.graph.node.StartState.leave(StartState.java:73)
  |     at org.jbpm.graph.exe.Token.signal(Token.java:127)
  |     at org.jbpm.graph.exe.Token.signal(Token.java:92)
  |     at com.cdhps.jbpm.ProcessWrapper.startProcess(ProcessWrapper.java:170)
  |     at 
com.cdhps.jbpm.ProcessWrapper$ProcessWrapperThread.run(ProcessWrapper.java:765)
  |     at java.lang.Thread.run(Thread.java:595)
  | 

main process xml snippet:

  |    <process-state name="spawn">
  |       <sub-process name="simple2" />
  |       <transition name="tr1" to="fork1"></transition>
  |    </process-state>
  | 

sub process xml:

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition 
  |   xmlns="http://jbpm.org/3/jpdl";
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |   xsi:schemaLocation="http://jbpm.org/3/jpdl 
http://jbpm.org/xsd/jpdl-3.0.xsd";
  |   name="simple2">
  |    <start-state name="start">
  |      <task>
  |         <controller>
  |           <variable name="color" />
  |           <variable name="size" />
  |         </controller>
  |       </task>
  |       <transition name="tr1" to="uno"></transition>
  |    </start-state>
  |    <end-state name="end">
  |       <event type="node-enter">
  |          <action name="action1" 
class="com.cdhps.jbpm.EndStateAction"></action>
  |       </event>
  |    </end-state>
  |    <node name="uno">
  |       <action class="com.cms.workflow.sample_simple2.Uno"></action>
  |       <transition name="tr1" to="end"></transition>
  |    </node>
  | </process-definition>
  | 

the sub process is there. I can run it and it works fine. I have a bad feeling 
this is a bug with 3.0 that has been fixed and I am loath to rebuild my jbpm 
database to potentially break something else I have already tested...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912898#3912898

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912898


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to