[jboss-user] [JBoss jBPM] - Re: swimlane task assignment in process definition not worki

syngolis do-not-reply at jboss.com
Wed Aug 15 08:00:12 EDT 2007


This unit test shows the use of initial.

		ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
  | 					"<process-definition" +
  | 					" xmlns=''  name='test' initial='task1'>" +
  | 					"  <task-node name='task1'>" +
  | 					"     <task name='task1'>" +
  | 					"     </task>" +
  | 					"     <transition name='' to='end1'></transition>" +
  | 					"  </task-node>" +
  | 					"  <end-state name='end1'></end-state>" +
  | 					"</process-definition>"
  | 			  );
  | 			  
  | 			  ProcessInstance processInstance = new ProcessInstance(processDefinition);
  | 			  
  | 			  Token token = processInstance.getRootToken();
  | 			  
  | 			  assertSame(processDefinition.getNode("task1"), token.getNode());	

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

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



More information about the jboss-user mailing list