[jboss-user] [jBPM Users] - Re: nested forks

makam do-not-reply at jboss.com
Tue Nov 17 13:19:43 EST 2009


I attach a test case for the situation described above.

Greetings and thanks for the support so far.

Sebatian


  | package org.jbpm.examples.task.swimlane;
  | 
  | import java.util.List;
  | 
  | import org.jbpm.api.task.Task;
  | import org.jbpm.test.JbpmTestCase;
  | 
  | /**
  |  * @author Tom Baeyens
  |  */
  | public class TaskSwimlaneTest extends JbpmTestCase {
  | 
  |   String deploymentId;
  |   
  |   protected void setUp() throws Exception {
  |     super.setUp();
  |     
  |     deploymentId = repositoryService.createDeployment()
  |         .addResourceFromClasspath("org/jbpm/examples/task/swimlane/process.jpdl.xml")
  |         .deploy();
  |     
  |   }
  | 
  |   protected void tearDown() throws Exception {
  |     // delete process deployment
  |     repositoryService.deleteDeploymentCascade(deploymentId);
  | 
  |     super.tearDown();
  |   }
  | 
  |   public void testTaskSwimlane() {    
  |     executionService.startProcessInstanceByKey("TaskSwimlane");
  | 
  |     List<Task> taskList = taskService.createTaskQuery().list();
  |     assertEquals(3, taskService.createTaskQuery().list().size());
  |     assertEquals("Expected only 3 task in task list", 3, taskList.size());
  |   }
  | }
  | 
  | 

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

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



More information about the jboss-user mailing list