Examples of fetchAvailableTasks()


Examples of org.intalio.tempo.workflow.util.jpa.TaskFetcher.fetchAvailableTasks()

            Task[] t1 = taskFetcher.fetchAvailableTasks(ur, PATask.class, "");
            Task[] t2 = taskFetcher.fetchAvailableTasks(ur, PATask.class,
                    "T._state = TaskState.READY OR T._state = TaskState.CLAIMED");
            UserRoles ur2 = new UserRoles("alex",
                    new String[] { "examples\\employee2" });
            Task[] t3 = taskFetcher.fetchAvailableTasks(ur2, PATask.class,
                    "T._state = TaskState.READY OR T._state = TaskState.CLAIMED");
          
            Assert.assertEquals(3, t1.length);
            Assert.assertEquals(2, t2.length);
            Assert.assertEquals(0, t3.length);
View Full Code Here

Examples of org.intalio.tempo.workflow.util.jpa.TaskFetcher.fetchAvailableTasks()

    map.put(TaskFetcher.FETCH_FIRST, first);
    map.put(TaskFetcher.FETCH_MAX, max);
    this._logger.debug("Testing range with :first=" + first + " and :max="
        + max + " ; expected:" + expected);
    Assert.assertEquals(expected,
        taskFetcher.fetchAvailableTasks(map).length);
  }

  private void testCount(long expected) throws Exception {
    final TaskFetcher taskFetcher = new TaskFetcher(em);
    HashMap map = new HashMap();
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.