[jboss-user] [JBoss jBPM] - why swimlane in start-task not assigned ?

joy_wind do-not-reply at jboss.com
Sun Jun 15 03:37:12 EDT 2008

I am studying jbpm(v3.2.2). I made a simple process as following.To capture who kick start a instance of it ,I set a swimlane in the start-task.
 <?xml version="1.0" encoding="UTF-8"?>  
  | <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="webflow">  
  |      <swimlane name="initiator" />  
  |      <start-state name="start-state1">  
  |           <task swimlane="initiator" />  
  |           <transition to="waitDecision">  
  |      </start-state>      
  |      ... ...  

The following is the test code to create an instance of it
... ...  
  | context.setActorId("john");  
  | GraphSession gs = context.getGraphSession();  
  | ProcessDefinition pdf = gs.findLatestProcessDefinition("webflow");  
  | ProcessInstance pi = pdf.createProcessInstance();  
  | pi.signal();  
  | ... ...  
As the code above shows,I set the actor to "john".
After run it,I find jbpm do create a process instance in database.but another test code of 
// pi is an instance loaded from db.
  | pi.getTaskMgmtInstance().getSwimlaneInstance("initiator"); get null ! The expected result should not be null,and the pi.getTaskMgmtInstance().getSwimlaneInstance("initiator").getActorId() should be john.

Why ?

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

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

More information about the jboss-user mailing list