[jboss-user] [JBoss jBPM] - jBPM 3.2.1 and Sub-Process

drashmi30 do-not-reply at jboss.com
Fri Jun 29 08:23:00 EDT 2007


Hi,

I am presently working on the stable version of jbpm-jpdl-3.2.1 and have downloaded the jbpm-jpdl-suite-3.2.1.zip. 

While trying to test for a process having a sub-process, I am getting an error:

Error starting process: An exception of type "org.jbpm.JbpmException" was thrown. The message is: can't create a process instance when processDefinition is null 

The process followed by me for testing is that I deploy the sub-process first and then the main process.

Please find the main process and the sub-process definitions below:

simpleSubProcess1.par

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition
  |   xmlns="urn:jbpm.org:jpdl-3.2" 
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |   xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://docs.jboss.org/jbpm/xsd/jpdl-3.2.xsd"  name="simpleSubProcess1">
  | 
  |    <start-state name="start">
  | 
  |       <transition name="" to="state1"></transition>
  | 
  |    </start-state>
  | 
  |    <state name="state1">
  | 
  |       <transition name="" to="node1"></transition>
  | 
  |    </state>
  | 
  |    <node name="node1">
  |    	  <action class="org.jbpm.tutorial.action.SimpleActionHandler"/>
  | 
  |       <transition name="" to="state2"></transition>
  | 
  |    </node>
  | 
  |    <state name="state2">
  | 
  |       <transition name="" to="end1"></transition>
  | 
  |    </state>
  | 
  |    <end-state name="end1"></end-state>
  | </process-definition>
  | 

simpleMainProcess1.par

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition
  |   xmlns="urn:jbpm.org:jpdl-3.2" 
  |   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |   xsi:schemaLocation="urn:jbpm.org:jpdl-3.2 http://docs.jboss.org/jbpm/xsd/jpdl-3.2.xsd" name="simpleMainProcess1">
  |    <start-state name="start">
  |       <transition name="" to="process1"></transition>
  |    </start-state>
  |    <process-state name="process1">
  |       <sub-process name="simpleSubProcess1"></sub-process>
  |       <transition name="" to="end1"></transition>
  |    </process-state>
  |    <end-state name="end1"></end-state>
  | </process-definition>
  | 
Any help in this regard will be very useful for me. Kindly share your experiences and knowledge and help me to solve this problem.

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

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



More information about the jboss-user mailing list