thank you for your response.

i want to do a simple workflow by using struts where each form correspond to 
the next task .

For example, 
anonymous wrote : 
  | start  ->start state
  | task-node 1
  | task-node 2
  | end
  | 

on my first form i do this: 

anonymous wrote : 
  | jbpmContext=this.getJbpmContext(request);
  | 
  |                     graphSession=jbpmContext.getGraphSession();
  |                     System.out.println("\n 
StartProcessInstance.jbpmContext:    "+jbpmContext+"\n");
  |                     
  |                     ProcessDefinition 
processDefinition=ProcessDefinition.parseXmlResource("SimpleApp/processdefinition.xml");
  |                     graphSession.deployProcessDefinition(processDefinition);
  |                     
  |                     System.out.println(" ...........Id:   
"+processDefinition.getId());
  |                     System.out.println(" ...........Name:   
"+processDefinition.getName());
  |                     System.out.println(" ...........Version:   
"+processDefinition.getVersion()+"\n");
  |                     
  |                     
  |                     //create a new process instance to run
  |                 ProcessInstance processInstance = new 
ProcessInstance(processDefinition);
  | 
  |                 Token token=processInstance.getRootToken();
  |                     token.signal(); 
  | processDefinition.getNode("task-node1");
  |                 jbpmContext.save(processInstance);
  | 

After that, the token go to task-node 1, there is no problem.
then, on my second form, i want to get where is my token and continue the 
process execution.

this is my problem............. 

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

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

Reply via email to