I have a simple example usage of the ProcessState node, where a parent process 
contains a reference to a child process via a ProcessState node. The process 
definitions are stored in a relational database.

The child process actually executes successfully (I have a single node with an 
ActionHandler that prints the node name to System.out).
However, I receive a NullPointerException in the ProcessState.leave() method - 
the executionContext.getSubProcessInstance() method call (first line in the 
method) returns null, and the next line then attempts to invoke a method on 
this null reference.

I see from the debugger that the executionContext object in the 
ProcessState.execute() method is different from the executionObject I later see 
in the ProcessState.leave() method - though in both methods the 
subProcessInstance member of the executionContext object is null.

Here are my two process definitions:

<process-definition
  xmlns=""  name="parent">
   <start-state name="start">
      
   </start-state>
   <end-state name="end1"></end-state>
   <process-state name="process1">
          <sub-process name="child"/>
                  
   </process-state>
</process-definition>


<process-definition
  xmlns=""  name="child">
   <start-state name="start">
      
   </start-state>
   <end-state name="end1"></end-state>
   
        <action name="action" config-type="bean" class="SysoutActionHandler">
                
      
   
</process-definition>

Any ideas? Given my limited analysis of the ProcessState.java code and related 
classes, I do not see how this can actually work - am I seeing a bug?

Thanks



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962201
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to