Examples of processDefinitionKey()


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

    //验证运行表已经不存在这条流程
    assertEquals(1, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").run().list();
    //验证运行表已经不存在这条流程
    assertEquals(0, processInstances.size());
  }
 
  /**
 
View Full Code Here

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

      Thread.sleep(1000);
    }
    //将1和2归档
    historyService.archiveBetweenTime(null, begin);
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    List<ProcessInstance> processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //run表剩3个
    assertEquals(3, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    //run表剩3个
    assertEquals(3, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //his表剩2个
    assertEquals(2, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    //his表剩2个
    assertEquals(2, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().run().list();
    //run和his表共3个
    assertEquals(5, processInstances.size());
   
    //将大于5归档
    historyService.archiveBetweenTime(end, null);
View Full Code Here

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

    //将大于5归档
    historyService.archiveBetweenTime(end, null);
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //run表剩2个
    assertEquals(2, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    //run表剩2个
    assertEquals(2, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //his表剩3个
    assertEquals(3, processInstances.size());
   
    //将3、4、5归档
    historyService.archiveBetweenTime(middle, end);
View Full Code Here

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

    //将3、4、5归档
    historyService.archiveBetweenTime(middle, end);
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //run表剩1个
    assertEquals(1, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    //run表剩1个
    assertEquals(1, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //his表剩4个
    assertEquals(4, processInstances.size());
  }
 
  /**
 
View Full Code Here

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

    historyService.archiveAll();
   
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询运行表的流程实例
    List<ProcessInstance> processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").list();
    //验证运行表剩3条
    assertEquals(3, processInstances.size());
   
    //重置流程查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    assertEquals(3, processInstances.size());
   
    //重置流程查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询历史表数据
    processInstances = processInstanceQuery.processDefinitionKey("TaskServiceNewTest").his().list();
    //验证历史表中有2条
    assertEquals(2, 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.