Hi makarandk502,

if I remove the 
taskService.completeTask(task.getId());

and change the assert to check for "review" instead of "wait" the tests works 
for me. I only had a 4.0 to hand, not 4.1 but I think this should work in 
4.1.... 


.......
  |             Task task=taskList.get(0);
  |         
  |         //taskService.completeTask(task.getId());
  |         
  |         System.out.println("List is"+taskList);
  |         
  |         //verify that process moved to the next state
  |         processInstance = executionService.findProcessInstanceById(pid);
  |         assertTrue(processInstance.isActive("review"));
  | 

regards!

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

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

Reply via email to