Examples of TaskFetcher


Examples of org.intalio.tempo.workflow.util.jpa.TaskFetcher

    return tasks;
  }

  private Task[] testFecthForUserRoles(String userId, String[] roles, int size)
      throws Exception {
    Task[] tasks = new TaskFetcher(em)
        .fetchAllAvailableTasks(new UserRoles(userId, roles));
    Assert.assertEquals(size, tasks.length);
    return tasks;
  }
View Full Code Here

Examples of org.intalio.tempo.workflow.util.jpa.TaskFetcher

  private void checkRemoved(Task task2) {
    checkRemoved(task2.getID());
  }

  private void checkRemoved(String id) {
    final TaskFetcher taskFetcher = new TaskFetcher(em);
    jpa.begin();
    taskFetcher.deleteTasksWithID(id);
    jpa.commit();
    try {
      taskFetcher.fetchTaskIfExists(id);
      Assert.fail("No task should be left here");
    } catch (Exception expected) {
      // this is good.
    }
  }
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.