[jboss-user] [JBoss jBPM] - task instance in start state

jywu do-not-reply at jboss.com
Tue Jul 10 03:55:33 EDT 2007


hi,
I went through the jbpm user guide about task instance,
it's saying 
 Task instances are typically created by the process execution entering a task-node 
Is that different from the task in start state? 
'Cause when I invoke this method 
instance.getTaskMgmtInstance().getTaskInstances().iterator().next();
  | 
right after I create the process instance, it will throw a NullPointerException.
If the task instance won't be created automatically in start state, can I create it somehow manually? or I misunderstand somewhere above?
Here is my start state definition:

  | <start-state name="draft">
  |      <task name="making a draft" swimlane="writer">
  |           <assignment class='com.test.WriterAssignmentHandler' />
  |      </task>
  |      <transition to="review" name="submit"></transition>
  | </start-state>
  | 

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

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



More information about the jboss-user mailing list