Examples of orderByHistoricTaskInstanceEndTime()


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

    public List<HistoricTaskInstance> readAllCompletedTasksForProcess(String procId, boolean orderByStart, boolean asc) {
        HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery().finished().processInstanceId(procId);
        if(orderByStart) {
          query.orderByHistoricActivityInstanceStartTime();
        } else {
          query.orderByHistoricTaskInstanceEndTime();
        }
        if(asc) {
          query.asc();
        } else {
          query.desc();
View Full Code Here

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

    query.finished(); //已完成任务
   
    OrderBy orderBy = page.getOrderBy();
    if( orderBy != null ){
      if( "endTime".equals(orderBy.getProperty()) )
        query.orderByHistoricTaskInstanceEndTime();
      else if( "startTime".equals(orderBy.getProperty()) )
        query.orderByHistoricTaskInstanceStartTime();
    }
   
    return (ListPage<HistoricTaskInstance>)query(query,page);
View Full Code Here

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

  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
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.