Package org.activiti.engine.history

Examples of org.activiti.engine.history.HistoricDetailQuery


   
    if( historyTaskList == null || historyTaskList.isEmpty() )
      return null;
    HistoricTaskInstance historyTask = historyTaskList.get(0);
   
    HistoricDetailQuery query = historyService.createHistoricDetailQuery().formProperties();
    query.taskId( historyTask.getId() );
   
    return query.list();
  }
View Full Code Here


 
  @Autowired
  protected HistoryService historyService;

  protected DataResponse getQueryResponse(HistoricDetailQueryRequest queryRequest, Map<String,String> allRequestParams, String serverRootUrl) {
    HistoricDetailQuery query = historyService.createHistoricDetailQuery();

    // Populate query based on request
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
    if (queryRequest.getExecutionId() != null) {
      query.executionId(queryRequest.getExecutionId());
    }
    if (queryRequest.getActivityInstanceId() != null) {
      query.activityInstanceId(queryRequest.getActivityInstanceId());
    }
    if (queryRequest.getTaskId() != null) {
      query.taskId(queryRequest.getTaskId());
    }
    if (queryRequest.getSelectOnlyFormProperties() != null) {
      if (queryRequest.getSelectOnlyFormProperties()) {
        query.formProperties();
      }
    }
    if (queryRequest.getSelectOnlyVariableUpdates() != null) {
      if (queryRequest.getSelectOnlyVariableUpdates()) {
        query.variableUpdates();
      }
    }

    return new HistoricDetailPaginateList(restResponseFactory, serverRootUrl).paginateList(
        allRequestParams, queryRequest, query, "processInstanceId", allowedSortProperties);
View Full Code Here

TOP

Related Classes of org.activiti.engine.history.HistoricDetailQuery

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.