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

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


    // 验证是否成功启动
    assertNotNull(mainProcessInstanceId);
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //拿到子流程实例
    ProcessInstance subProcessInstance = processInstanceQuery.processDefinitionKey("SubProcessTest").singleResult();
    //验证是否为设置的子流程
    assertEquals("SubProcessTest", subProcessInstance.getProcessDefinitionKey());
    //主流程的任务应该没有了,查询子流程中的任务
    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
View Full Code Here


      Thread.sleep(1000);
    }
    //流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //根据流程定义key查询
    List<ProcessInstance> processInstances = processInstanceQuery.processDefinitionKey("Process_TaskServiceTest").list();
    //验证是10条流程实例
    assertEquals(10, processInstances.size());
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //流程实例key的集合
    List<String> definitionKeys = new ArrayList<String>();
    definitionKeys.add("Process_TaskServiceTest");
    //根据key的集合查询实例
    processInstances = processInstanceQuery.processDefinitionKey(definitionKeys).list();
    //验证10条查询结果
    assertEquals(10, processInstances.size());
   
    //根据开始时间降序查询
    processInstanceQuery.orderByStartTime().desc();
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.