Package org.activiti.engine.history

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


   
    HistoricTaskInstanceQuery query = historyService.createHistoricTaskInstanceQuery();
    if( task != null ){
      //流程实例ID
      if( StringUtils.isNotEmpty(task.getProcessInstanceId()) ){
        query.processInstanceId(task.getProcessInstanceId().trim());
      }
     
      //流程定义ID
      if( StringUtils.isNotEmpty(task.getProcessDefinitionId()) ){
        query.processDefinitionId(task.getProcessDefinitionId().trim());
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

    // Populate query based on request
    if (queryRequest.getTaskId() != null) {
      query.taskId(queryRequest.getTaskId());
    }
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
    if (queryRequest.getProcessBusinessKey() != null) {
      query.processInstanceBusinessKey(queryRequest.getProcessBusinessKey());
    }
    if (queryRequest.getProcessBusinessKeyLike() != 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.