Package org.aperteworkflow.ext.activiti.mybatis

Examples of org.aperteworkflow.ext.activiti.mybatis.TaskQueryImplEnhanced


  public List<BpmTask> findFilteredTasks(ProcessInstanceFilter filter, ProcessToolContext ctx, int resultOffset, int maxResults) {
    return findProcessTasksHelper(filter, ctx, new Page(resultOffset, maxResults));
  }

  private List<BpmTask> findProcessTasksHelper(ProcessInstanceFilter filter, ProcessToolContext ctx, final Page page) {
    final TaskQueryImplEnhanced q = new TaskQueryImplEnhanced();
    for (UserData u : filter.getOwners()) {
      q.addOwner(u.getLogin());
    }
    for (UserData u : filter.getCreators()) {
      q.addCreator(u.getLogin());
    }
    // TODO
//        for (UserData u : filter.getNotOwners()) {
//            q.addNotOwner(u.getLogin());
//        }
    for (String qn : filter.getQueues()) {
      q.addGroup(qn);
    }

    ActivitiContextFactoryImpl.CustomStandaloneProcessEngineConfiguration processEngineConfiguration = getProcessEngineConfiguration();
    CommandExecutor commandExecutorTxRequired = processEngineConfiguration.getCommandExecutorTxRequired();
    List<Task> tasks = commandExecutorTxRequired.execute(new Command<List<Task>>() {
View Full Code Here

TOP

Related Classes of org.aperteworkflow.ext.activiti.mybatis.TaskQueryImplEnhanced

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.