Examples of processInstanceId()


Examples of com.founder.fix.fixflow.core.task.TaskQuery.processInstanceId()


    List<TaskInstance> taskInstanceQueryToList = new ArrayList<TaskInstance>();


    taskQuery.processInstanceId(processInstanceId);
    taskQuery.taskIsEnd().orderByEndTime().asc().orderByTaskCreateTime().asc();
    taskInstanceQueryToList = taskQuery.list();
   
   
   
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.processInstanceId()

    assertEquals(10, processInstances.size());
   
   
    String processInstanceId = processInstances.get(0).getId();
    TaskQuery taskQuery = taskService.createTaskQuery();
    taskQuery.processInstanceId(processInstanceId).taskNotEnd();
    TaskInstance taskInstance = taskQuery.list().get(0);
   
    Date begin = new Date();
    //创建通用命令
    ExpandTaskCommand expandTaskCommandGeneral=new ExpandTaskCommand();
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.processInstanceId()

      TaskCommandInst taskCommandInst = getTaskCommandInst();

      ProcessEngine processEngine = ProcessEngineManagement.getDefaultProcessEngine();
      TaskQuery taskQuery = processEngine.getTaskService().createTaskQuery();
      List<TaskInstance> taskInstancesEnd = taskQuery.processInstanceId(taskInstance.getProcessInstanceId())
          .taskAssignee(Authentication.getAuthenticatedUserId()).taskIsEnd().list();

      String tokenId = taskInstance.getTokenId();

      String processDefinitionId = taskInstance.getProcessDefinitionId();
View Full Code Here

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

    if (queryRequest.getTaskAssignee() != null) {
      query.taskAssignee(queryRequest.getTaskAssignee());
    }
   
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
   
    if (queryRequest.getProcessDefinitionId() != null) {
      query.processDefinitionId(queryRequest.getProcessDefinitionId());
    }
View Full Code Here

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

  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) {
View Full Code Here

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

  protected DataResponse getQueryResponse(HistoricProcessInstanceQueryRequest queryRequest, Map<String,String> allRequestParams, String serverRootUrl) {
    HistoricProcessInstanceQuery query = historyService.createHistoricProcessInstanceQuery();

    // Populate query based on request
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
    if (queryRequest.getProcessInstanceIds() != null && !queryRequest.getProcessInstanceIds().isEmpty()) {
      query.processInstanceIds(new HashSet<String>(queryRequest.getProcessInstanceIds()));
    }
    if (queryRequest.getProcessDefinitionKey() != null) {
View Full Code Here

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

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

  @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

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

    if (queryRequest.getTaskId() != null) {
      query.taskId(queryRequest.getTaskId());
    }
   
    if (queryRequest.getProcessInstanceId() != null) {
      query.processInstanceId(queryRequest.getProcessInstanceId());
    }
   
    if (queryRequest.getVariableName() != null) {
      query.variableName(queryRequest.getVariableName());
    }
View Full Code Here

Examples of org.activiti.engine.impl.HistoricActivityInstanceQueryImpl.processInstanceId()

                        diagramResourceName).getBytes();
        InputStream originDiagram = new ByteArrayInputStream(bytes);
        BufferedImage image = ImageIO.read(originDiagram);

        HistoricActivityInstanceQueryImpl historicActivityInstanceQueryImpl = new HistoricActivityInstanceQueryImpl();
        historicActivityInstanceQueryImpl.processInstanceId(processInstanceId)
                .orderByHistoricActivityInstanceStartTime().asc();

        Page page = new Page(0, 100);
        List<HistoricActivityInstance> activityInstances = Context
                .getCommandContext()
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.