Package org.activiti.engine.history

Examples of org.activiti.engine.history.HistoricTaskInstanceQuery.finished()


        query.taskAssignee(task.getAssignee());
     
      //任务是否完成
      if( task.getFinish() != null ){
        if( task.getFinish() )
          query.finished();
        else
          query.unfinished();
      }
    }
   
View Full Code Here


    if( page == null )
      page = new ListPage<HistoricTaskInstance>();
   
    HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery();
   
    query.finished(); //已完成任务
   
    OrderBy orderBy = page.getOrderBy();
    if( orderBy != null ){
      if( "endTime".equals(orderBy.getProperty()) )
        query.orderByHistoricTaskInstanceEndTime();
View Full Code Here

   */
  @SuppressWarnings("unchecked")
  public HistoricTaskInstance getLastTask(String processInstanceId){
    ListPage<HistoricTaskInstance> page = new ListPage<HistoricTaskInstance>(1);
    HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery();
    query.finished(); //已完成任务
    query.processInstanceId(processInstanceId);
    query.orderByHistoricTaskInstanceEndTime().desc();
   
    return ((ListPage<HistoricTaskInstance>)query(query,page)).getFirst();
  }
View Full Code Here

    if (queryRequest.getTaskPriority() != null) {
      query.taskPriority(queryRequest.getTaskPriority());
    }
    if (queryRequest.getFinished() != null) {
      if (queryRequest.getFinished()) {
        query.finished();
      } else {
        query.unfinished();
      }
    }
    if (queryRequest.getProcessFinished() != null) {
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.