Package com.founder.fix.fixflow.core.runtime

Examples of com.founder.fix.fixflow.core.runtime.ProcessInstanceQuery.processDefinitionKey()


      if(StringUtil.isNotEmpty(rowI)){
        rowNum = Integer.valueOf(rowI);
      }
      ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
      if(StringUtil.isNotEmpty(processDefinitionKey))
        processInstanceQuery.processDefinitionKey(processDefinitionKey);
      if(StringUtil.isNotEmpty(processInstanceId))
        processInstanceQuery.processInstanceId(processInstanceId);
      if(StringUtil.isNotEmpty(title))
        processInstanceQuery.subjectLike(title);
      if(StringUtil.isNotEmpty(bizKey))
View Full Code Here


      if(datee!=null)
        tq.archiveTimeAfter(datee);
     
      String processDefinitionKey = StringUtil.getString(filter.get("processDefinitionKey"))//流程定义
      if(StringUtil.isNotEmpty(processDefinitionKey))
        tq.processDefinitionKey(processDefinitionKey);
     
      String processInstanceId = StringUtil.getString(filter.get("processInstanceId"))//流程实例号
      if(StringUtil.isNotEmpty(processInstanceId))
        tq.processInstanceId(processInstanceId);
     
View Full Code Here

    historyService.archiveByProcessInstanceId(processInstanceId);
   
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才启动的流程
    List<ProcessInstance> processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //验证运行表已经不存在这条流程
    assertEquals(1, processInstances.size());
    //验证归档时间为null
    assertNull(processInstances.get(0).getArchiveTime());
   
View Full Code Here

    historyService.archiveByProcessInstanceId(processInstanceId);
   
    //创建流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才启动的流程
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //验证运行表已经不存在这条流程
    assertEquals(0, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

    //验证运行表已经不存在这条流程
    assertEquals(0, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //验证历史表存在这条流程
    assertEquals(1, processInstances.size());
    //验证历史表查询出的实例归档时间不为空
    assertNotNull(processInstances.get(0).getArchiveTime());
   
View Full Code Here

    //验证历史表查询出的实例归档时间不为空
    assertNotNull(processInstances.get(0).getArchiveTime());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").run().list();
    //验证运行表已经不存在这条流程
    assertEquals(0, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

    //验证运行表已经不存在这条流程
    assertEquals(0, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").run().his().list();
    //验证运行表和历史表集合中存在这条流程
    assertEquals(1, processInstances.size());
   
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
View Full Code Here

    historyService.archiveByProcessInstanceId(processInstanceId);
   
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才启动的流程
    List<ProcessInstance> processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //验证运行表还存在这条流程,说明未结束的流程是不会被归档的
    assertEquals(1, processInstances.size());
       
    // 创建任务查询
    TaskQuery taskQuery = taskService.createTaskQuery();
View Full Code Here

    //将上面结束的流程进行归档
    historyService.archiveByProcessDefinitionKey("TaskServiceNewTest");
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //验证运行表已经不存在这条流程
    assertEquals(1, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

    //验证运行表已经不存在这条流程
    assertEquals(1, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").run().list();
    //验证运行表已经不存在这条流程
    assertEquals(0, processInstances.size());
  }
 
  /**
 
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.