Package org.drools.task.service

Examples of org.drools.task.service.BlockingTaskSummaryResponseHandler


    workItem.setParameter("ActorId", "Darth Vader");
    handler.executeWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    BlockingTaskSummaryResponseHandler responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    List<TaskSummary> tasks = responseHandler.getResults();
    assertEquals(1, tasks.size());
    TaskSummary task = tasks.get(0);
    assertEquals("TaskName", task.getName());
    assertEquals(10, task.getPriority());
    assertEquals("Comment", task.getDescription());
View Full Code Here


    workItem.setParameter("ActorId", "Darth Vader, Dalai Lama");
    handler.executeWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    BlockingTaskSummaryResponseHandler responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    List<TaskSummary> tasks = responseHandler.getResults();
    assertEquals(1, tasks.size());
    TaskSummary task = tasks.get(0);
    assertEquals("TaskName", task.getName());
    assertEquals(10, task.getPriority());
    assertEquals("Comment", task.getDescription());
View Full Code Here

    workItem.setParameter("ActorId", "Darth Vader");
    handler.executeWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    BlockingTaskSummaryResponseHandler responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    List<TaskSummary> tasks = responseHandler.getResults();
    assertEquals(1, tasks.size());
    TaskSummary task = tasks.get(0);
    assertEquals("TaskName", task.getName());
    assertEquals(10, task.getPriority());
    assertEquals("Comment", task.getDescription());
View Full Code Here

    workItem.setParameter("ActorId", "Darth Vader");
    handler.executeWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    BlockingTaskSummaryResponseHandler responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    List<TaskSummary> tasks = responseHandler.getResults();
    assertEquals(1, tasks.size());
    TaskSummary task = tasks.get(0);
    assertEquals("TaskName", task.getName());
    assertEquals(10, task.getPriority());
    assertEquals("Comment", task.getDescription());
View Full Code Here

   
    handler.abortWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    BlockingTaskSummaryResponseHandler responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    List<TaskSummary> tasks = responseHandler.getResults();
    assertEquals(0, tasks.size());
  }
View Full Code Here

    workItem.setParameter("Skippable", "false");
    handler.executeWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    BlockingTaskSummaryResponseHandler responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    List<TaskSummary> tasks = responseHandler.getResults();
    assertEquals(1, tasks.size());
   
    handler.abortWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    tasks = responseHandler.getResults();
    assertEquals(1, tasks.size());
  }
View Full Code Here

    workItem.setParameter("Content", "This is the content");
    handler.executeWorkItem(workItem, manager);
   
    Thread.sleep(500);
   
    BlockingTaskSummaryResponseHandler responseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner("Darth Vader", "en-UK", responseHandler);
    List<TaskSummary> tasks = responseHandler.getResults();
    assertEquals(1, tasks.size());
    TaskSummary taskSummary = tasks.get(0);
    assertEquals("TaskName", taskSummary.getName());
    assertEquals(10, taskSummary.getPriority());
    assertEquals("Comment", taskSummary.getDescription());
View Full Code Here

TOP

Related Classes of org.drools.task.service.BlockingTaskSummaryResponseHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.