Examples of taskAssignee()


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

        assertEquals(1, taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list().size());
      }
    }

    // 走完吧、合并的并行网关,任务停留在UserTask_4上
    assertEquals("UserTask_4", taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list().get(0).getNodeId());
  }
}
View Full Code Here

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

    // 验证是否成功启动
    assertNotNull(processInstanceId);

    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
    List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();

    // 脚本任务没有停留,流程实例应该结束,任务实例应该为0
    assertEquals(0, taskInstances.size());
   
    //看打印语句是否已经打印到控制台
View Full Code Here

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

    assertNull(processInstances.get(0).getArchiveTime());
   
    // 创建任务查询
    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
    List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    // 获取一条任务
    TaskInstance taskInstance = taskInstances.get(0);
    //验证运行表中的归档时间不为空
    assertNull(taskInstance.getArchiveTime());
    //创建通用命令
View Full Code Here

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

    assertEquals(1, processInstances.size());
       
    // 创建任务查询
    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
    List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    // 获取一条任务
    TaskInstance taskInstance = taskInstances.get(0);
    //创建通用命令
    ExpandTaskCommand expandTaskCommandGeneral=new ExpandTaskCommand();
    //设置命令为领取任务
View Full Code Here

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

      assertNotNull(processInstanceId);
     
      // 创建任务查询
      TaskQuery taskQuery = taskService.createTaskQuery();
      // 查找 1200119390 的这个流程实例的当前独占任务
      List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
      // 获取一条任务
      TaskInstance taskInstance = taskInstances.get(0);
      //创建通用命令
      ExpandTaskCommand expandTaskCommandGeneral=new ExpandTaskCommand();
      //设置命令为领取任务
View Full Code Here

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

      //将4号和5号流程结束
      if(i>2){
        // 创建任务查询
        TaskQuery taskQuery = taskService.createTaskQuery();
        // 查找 1200119390 的这个流程实例的当前独占任务
        List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
        // 获取一条任务
        TaskInstance taskInstance = taskInstances.get(0);
        //创建通用命令
        ExpandTaskCommand expandTaskCommandGeneral=new ExpandTaskCommand();
        //设置命令为领取任务
View Full Code Here

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

      //验证是否成功启动
      assertNotNull(processInstanceId);
      // 创建任务查询
      TaskQuery taskQuery = taskService.createTaskQuery();
      // 查找 1200119390 的这个流程实例的当前独占任务
      List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
      // 获取一条任务
      TaskInstance taskInstance = taskInstances.get(0);
      //创建通用命令
      ExpandTaskCommand expandTaskCommandGeneral=new ExpandTaskCommand();
      //设置命令为领取任务
View Full Code Here

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

      assertNotNull(processInstanceId);
    }
   
    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
    TaskInstance taskInstance = taskQuery.taskAssignee("1200119390").processDefinitionKey("TaskServiceNewTest").taskNotEnd().list().get(0);
    //创建通用命令
    ExpandTaskCommand expandTaskCommandSuspendProcessInstance=new ExpandTaskCommand();
    //设置命令为暂停实例
    expandTaskCommandSuspendProcessInstance.setCommandType("general");
    //设置命令按钮的iD,与节点上处理命令设置一致
View Full Code Here

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

    assertNotNull(processInstanceId);
   
    // 创建任务查询
    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
    List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    // 获取一条任务
    TaskInstance taskInstance = taskInstances.get(0);
    //验证这个待办是否为空
    assertNotNull(taskInstance);
    String nodeId = taskInstance.getNodeId();
View Full Code Here

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

    String processInstanceId = processInstanceQueryTo.getId();
    // 验证是否成功启动
    assertNotNull(processInstanceId);
    TaskQuery taskQuery = taskService.createTaskQuery();
    // 查找 1200119390 的这个流程实例的当前独占任务
    List<TaskInstance> taskInstances = taskQuery.taskAssignee("1200119390").processInstanceId(processInstanceId).taskNotEnd().list();
    // 获取一条任务
    TaskInstance taskInstance = taskInstances.get(0);
    String nodeId = taskInstance.getNodeId();
    // 验证流程实例是否在第一个节点
    assertEquals(nodeId, "UserTask_1");
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.