[jboss-user] [JBoss jBPM] - JBPM process composition

Thinkstream09 do-not-reply at jboss.com
Mon Mar 16 17:50:54 EDT 2009


Hello,
I am new to JBPM and trying to use process composition. My 2 processdefinition.xml files are listed at the bottom of this post. 
When I start the process 'process-civil-inquiry-fingerprints', it starts out OK. 
Then it correctly executes the first node (startFP).
Then it correctly starts the sub-process "process-common-elements-1" 
Then it correctly executes the first node of "process-common-elements-1"  process (start)
Then it correctly executes the second node of that process (ProcessInstanceAssign)
Then it fails with this exception:
java.lang.NullPointerException
	at org.jbpm.graph.node.ProcessState.leave(ProcessState.java:186)
	at org.jbpm.graph.exe.Token.signal(Token.java:192)
	at org.jbpm.graph.exe.Token.signal(Token.java:140)
	at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:270)

What am I doing wrong?
I would appreciate any help.
-T


#####################################
<process-definition name="process-civil-inquiry-fingerprints" initial="startFP">
  
         <!-- Process-wide definition - begin -->
       
            
         
       <!-- Process-wide definition - end --> 
       
       <start-state name='startFP'>
          
       </start-state>
      
        <process-state name="common_1">
            <sub-process name="process-common-elements-1" />
            
        </process-state>

      <end-state name='end' />

</process-definition>



########################################
<process-definition name="process-common-elements-1" initial="start">

       <!-- Process-wide definition - begin -->
       
            
         
       
            
         
       <!-- Process-wide definition - end --> 

       <!-- Node of the type 'start-state' is alwys required. All other nodes are optional-->
       <start-state name='start'>
          
       </start-state>
       <!-- -->
       
       <task-node name='ProcessInstanceAssign'>
          
             
          
          
       </task-node>      
       
       <task-node name='agentGet'>
          
             
          
          
       </task-node>
      
       <task-node name='agentCredentialsGet'>
          
             
          
          
        </task-node>
       
        <task-node name='processInstanceInitialize'>
          
             
          
          
        </task-node>
       
       <end-state name='end'>
       </end-state>  

</process-definition>

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

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



More information about the jboss-user mailing list