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

Examples of com.founder.fix.fixflow.core.runtime.TokenQuery.processInstanceId()


      RuntimeService runtimeService = engine.getRuntimeService();
      TokenQuery tokenQuery = runtimeService.createTokenQuery();
     
      String processInstanceId = StringUtil.getString(params.get("processInstanceId"));
      if(StringUtil.isNotEmpty(processInstanceId))
        tokenQuery.processInstanceId(processInstanceId);
     
      List<Token> tokenList = tokenQuery.list();
      List<Map<String,Object>> result = new ArrayList<Map<String,Object>>();
      for(Token tmp : tokenList){
        result.add(tmp.getPersistentState());
View Full Code Here


    assertEquals(4, taskInstances.size());
   
    //创建令牌查询
    TokenQuery tokenQuery = runtimeService.createTokenQuery();
    //查询run表的对应令牌
    List<Token> tokens = tokenQuery.processInstanceId(processInstanceId).list();
    //验证run表中令牌已经不存在
    assertEquals(0, tokens.size());
   
    //重置令牌查询
    tokenQuery = runtimeService.createTokenQuery();
View Full Code Here

    assertEquals(0, tokens.size());
   
    //重置令牌查询
    tokenQuery = runtimeService.createTokenQuery();
    //查his表中对应令牌
    tokens = tokenQuery.processInstanceId(processInstanceId).his().list();
    //验证令牌存在
    assertEquals(1, tokens.size());
    //验证历史表中的数据归档时间不为空
    assertNotNull(tokens.get(0).getArchiveTime());
   
View Full Code Here

    assertNotNull(tokens.get(0).getArchiveTime());
   
    //重置令牌查询
    tokenQuery = runtimeService.createTokenQuery();
    //查run表中对应令牌
    tokens = tokenQuery.processInstanceId(processInstanceId).run().list();
    //验证令牌存在
    assertEquals(0, tokens.size());
       
    //重置令牌查询
    tokenQuery = runtimeService.createTokenQuery();
View Full Code Here

    assertEquals(0, tokens.size());
       
    //重置令牌查询
    tokenQuery = runtimeService.createTokenQuery();
    //查his表和run表中对应令牌
    tokens = tokenQuery.processInstanceId(processInstanceId).his().run().list();
    //验证令牌存在
    assertEquals(1, tokens.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.