Examples of waitTillDone()


Examples of org.jbpm.task.service.responsehandlers.BlockingTaskOperationResponseHandler.waitTillDone()

        assertEquals(1, myRecipientTasks.size());
        assertTrue(task1.getPeopleAssignments().getRecipients().contains(users.get("bobba")));
       
        BlockingTaskOperationResponseHandler removeHandler = new BlockingTaskOperationResponseHandler();
        client.remove(taskId, users.get("bobba").getId(), removeHandler);
        removeHandler.waitTillDone(DEFAULT_WAIT_TIME);
       
        Thread.sleep(500);
       
        BlockingGetTaskResponseHandler getTaskResponseHandler = new BlockingGetTaskResponseHandler()
        client.getTask( taskId, getTaskResponseHandler );
View Full Code Here

Examples of org.jbpm.task.service.responsehandlers.BlockingTaskOperationResponseHandler.waitTillDone()

        assertEquals(0, myPotentialTasks.size());
       
        BlockingTaskOperationResponseHandler removeHandler = new BlockingTaskOperationResponseHandler();
         try {
           client.remove(taskId, users.get("jabba").getId(), removeHandler);
           removeHandler.waitTillDone(DEFAULT_WAIT_TIME);
           fail("Shouldn't be successful");
        } catch (RuntimeException e) { //expected
        }
       
        //shouldn't affect the assignments
View Full Code Here

Examples of org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.waitTillDone()

  }

  public List<TaskSummary> getAssignedTasks(User user) {
    BlockingTaskSummaryResponseHandler taskSummaryResponseHandler = new BlockingTaskSummaryResponseHandler();
    client.getTasksAssignedAsPotentialOwner(user.getId(), "en-UK", taskSummaryResponseHandler);
    taskSummaryResponseHandler.waitTillDone(DEFAULT_WAIT_TIME);
    List<TaskSummary> tasks = taskSummaryResponseHandler.getResults();
    return tasks;
  }

  public void completeTask(User user, TaskSummary task, Map data) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.