Package pl.net.bluesoft.rnd.pt.ext.jbpm.query

Examples of pl.net.bluesoft.rnd.pt.ext.jbpm.query.BpmTaskFilterQuery


 
  @Override
  public int getFilteredTasksCount(ProcessInstanceFilter filter, ProcessToolContext ctx)
  {
       /* Initialize query */
       BpmTaskFilterQuery taskFilterQuery = new BpmTaskFilterQuery(ctx);
      
       /* Queues filter do not have owner */
       if(filter.getFilterOwner() != null)
         taskFilterQuery.addUserLoginCondition(filter.getFilterOwner().getLogin());
      
       if(!filter.getQueueTypes().isEmpty())
         taskFilterQuery.addQueueTypeCondition(filter.getQueueTypes());
      
       /* Add external conditions for process instance filter */
       addExternalConditions(taskFilterQuery, filter);
      
       /* Get results count. No entities are loaded to memory using this */
       return taskFilterQuery.getBpmTaskCount();
  }
View Full Code Here


  }
    
  public List<BpmTask> findFilteredTasks(ProcessInstanceFilter filter, ProcessToolContext ctx, int offset, int maxResults)
     {
       /* Initialize query */
       BpmTaskFilterQuery taskFilterQuery = new BpmTaskFilterQuery(ctx);
      
       /* Queues filter do not have owner */
       if(filter.getFilterOwner() != null)
         taskFilterQuery.addUserLoginCondition(filter.getFilterOwner().getLogin());
      
       if(!filter.getQueueTypes().isEmpty())
         taskFilterQuery.addQueueTypeCondition(filter.getQueueTypes());
      
       /* Set limit for max results count */
       taskFilterQuery.setMaxResultsLimit(maxResults);
       taskFilterQuery.setResultsOffset(offset);
       /* Add external conditions for process instance filter */
       addExternalConditions(taskFilterQuery, filter);
      
    /* BpmTasks */
    List<BpmTask> result = taskFilterQuery.getBpmTasks();
      
       return result;
     }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.pt.ext.jbpm.query.BpmTaskFilterQuery

Copyright © 2018 www.massapicom. 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.