Examples of BlockingTaskSummaryResponseHandler


Examples of org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler

        Thread.sleep(3000);
    }

    @Override
    protected Map<String, String> getFirefighterTasks() throws Exception {
        BlockingTaskSummaryResponseHandler handler = new BlockingTaskSummaryResponseHandler();
        client.getTasksAssignedAsPotentialOwner("firefighter", "en-UK", handler);
        List<TaskSummary> sums = handler.getResults();
       
        Map<String, String> ids = new HashMap<String, String>();
        for (TaskSummary taskSummary : sums) {
            ids.put(taskSummary.getId()+"", taskSummary.getName());
        }
View Full Code Here

Examples of org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler

      throw new RuntimeException(ex.getMessage());
    }
  }

  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;
  }
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.