Examples of fetchTasksForUser()


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

                    "http://hellonico.net"), getXmlSampleDocument());
            task1.getUserOwners().add("intalio\\admin");
            persist(task1);
          
            final TaskFetcher taskFetcher = new TaskFetcher(em);
            task2 = (Notification) taskFetcher.fetchTasksForUser("intalio\\admin")[0];
            TaskEquality.areTasksEquals(task1, task2);
          
            checkRemoved(task2);
           }
          
View Full Code Here

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

            Query q = em.createNamedQuery(Task.FIND_BY_ID).setParameter(1, id);
            task2 = (Notification) (q.getResultList()).get(0);
            TaskEquality.areTasksEquals(task2, task1);
          
            TaskFetcher fetcher = new TaskFetcher(em);
            Assert.assertEquals(Notification.class, fetcher
                    .fetchTasksForUser("user1")[0].getClass());
            Assert.assertEquals(Notification.class, fetcher
                    .fetchTasksForRole("role1")[0].getClass());
          
            testFecthForUserRoles("user1", new String[] { "role2" }, 1);
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.