Пример #1
0
        public virtual void testHistoricIdentityLinkQueryPaging()
        {
            startProcessInstance(PROCESS_DEFINITION_KEY_MULTIPLE_CANDIDATE_USER);

            HistoricIdentityLinkLogQuery query = historyService.createHistoricIdentityLinkLogQuery();

            assertEquals(4, query.listPage(0, 4).size());
            assertEquals(1, query.listPage(2, 1).size());
            assertEquals(2, query.listPage(1, 2).size());
            assertEquals(3, query.listPage(1, 4).size());
        }
Пример #2
0
 private IList <HistoricIdentityLinkLog> executePaginatedQuery(HistoricIdentityLinkLogQuery query, int?firstResult, int?maxResults)
 {
     if (firstResult == null)
     {
         firstResult = 0;
     }
     if (maxResults == null)
     {
         maxResults = int.MaxValue;
     }
     return(query.listPage(firstResult, maxResults));
 }