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

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


      ProcessInstanceQuery tq = engine.getRuntimeService()
          .createProcessInstanceQuery();
     
      String bizKey = StringUtil.getString(filter.get("BIZ_KEY"))//业务数据
      if(StringUtil.isNotEmpty(bizKey))
        tq.processInstanceBusinessKey(bizKey);
     
      String initor = StringUtil.getString(filter.get("initor"))//发起人
      if(StringUtil.isNotEmpty(initor))
        tq.initiator(initor);
     
View Full Code Here


    assertEquals(10, count);
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询对应bizKey的流程实例(方法2)
    processInstances = processInstanceQuery.processInstanceBusinessKey("BK_testStartProcessInstanceByKey","Process_TaskServiceTest").list();
    //验证是否有10个
    assertEquals(10, processInstances.size());
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
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.