Package org.activiti.engine

Examples of org.activiti.engine.TaskService.complete()


    // 驳回请求
    task = taskService.createTaskQuery().taskAssignee("user1").singleResult();
    assertEquals("处理后驳回", task.getName());
    Map<String, Object> vairables = new HashMap<String, Object>();
    vairables.put("reject", true);
    taskService.complete(task.getId(), vairables);
   
    // 再次获取节点-分配给角色
    task = taskService.createTaskQuery().taskCandidateGroup("role1").singleResult();
    assertEquals("分配给角色", task.getName());
   
View Full Code Here


     TaskService taskService = processEngine.getTaskService();
     Task task = taskService
       .createTaskQuery()
       .list()
       .get(0);
     taskService.complete(task.getId());
    
     // Check if the process instance has really ended.  This means that the process definition has
     // re-loaded into the process definition cache
     processInstance = processEngine
       .getRuntimeService()
View Full Code Here

   
    TaskService taskService = activitiRule.getTaskService();
    Task task = taskService.createTaskQuery().singleResult();
    assertEquals("My Task", task.getName());
   
    taskService.complete(task.getId());
    assertEquals(0, runtimeService.createProcessInstanceQuery().count());
  }

}
View Full Code Here

      historyService.createHistoricTaskInstanceQuery()
        .processInstanceId(processInstanceId)
        .orderByTaskName().asc()
        .count());
     
    taskService.complete(task.getId());
   
    assertEquals(1, runtimeService
            .createExecutionQuery()
            .processInstanceId(processInstanceId)
            .list()
View Full Code Here

    task = taskService
      .createTaskQuery()
      .taskName("simpleTask3")
      .singleResult();

    taskService.complete(task.getId());

    assertEquals(0, runtimeService
            .createExecutionQuery()
            .processInstanceId(processInstanceId)
            .list()
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.