Examples of processInstanceId()


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

    Date end = new Date();
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询流程定义名称等于“TaskServiceTest”的流程实例
    processInstances = processInstanceQuery.processInstanceId(processInstanceId).list();
    //验证是否有10个
    assertTrue(processInstances.get(0).hasEnded());
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

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

    taskService.expandTaskComplete(expandTaskCommandGeneral, null);
   
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //获得上面的流程实例
    ProcessInstance process = processInstanceQuery.processInstanceId(processInstanceId).singleResult();
    //验证流程实例是否已经结束,结束说明通用按钮已经驱动流程离开当前节点。
    assertTrue(process.hasEnded());
  }
  /**
   * 测试接收任务和释放任务,TaskServiceCandidateTest流程中的任务分配类型为共享模式
 
View Full Code Here

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

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

    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

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

    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

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

    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

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

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

Examples of com.founder.fix.fixflow.core.task.TaskQuery.processInstanceId()

      ProcessInstance processInstance = engine.getRuntimeService().getProcessInstance(processInstanceId);
      String processName = processInstance.getProcessDefinition().getName();
      try{
        TaskQuery tq = engine.getTaskService().createTaskQuery();
        IdentityService identityService = engine.getIdentityService();
        tq.processInstanceId(processInstanceId);
        tq.taskIsEnd().orderByEndTime().asc();
        List<TaskInstance> instances = tq.list();
        List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
        for(TaskInstance tmp:instances){
          Map<String,Object> instanceMap = tmp.getPersistentState();
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.processInstanceId()

        return "完成";
      }

      List<TaskInstance> taskInstanceQueryTos = new ArrayList<TaskInstance>();
      TaskQuery tq = engine.getTaskService().createTaskQuery();
      tq.processInstanceId(processInstanceId);
      tq.taskNotEnd();
      taskInstanceQueryTos = tq.list();
      for (TaskInstance taskInstanceQueryTo2 : taskInstanceQueryTos) {
        if (taskInfo.equals("") && taskInstanceQueryTos.size() == 1) {
          taskInfo = taskInfo + processState(taskInstanceQueryTo2,engine);
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.processInstanceId()

   

    ProcessEngine processEngine = ProcessEngineManagement.getDefaultProcessEngine();
    TaskQuery taskQuery = processEngine.getTaskService().createTaskQuery();
    List<TaskInstance> taskInstancesEnd = taskQuery.processInstanceId(taskInstanceQuery.getProcessInstanceId())
        .taskAssignee(Authentication.getAuthenticatedUserId()).addTaskType(TaskInstanceType.FIXFLOWTASK).addTaskType(TaskInstanceType.FIXNOTICETASK).taskIsEnd().list();

    String tokenId = taskInstanceQuery.getTokenId();
    String nodeId = taskInstanceQuery.getNodeId();
    String processDefinitionId = taskInstanceQuery.getProcessDefinitionId();
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.