Examples of delegateTask()


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

     */
    @RequestMapping("workspace-delegateTask")
    public String delegateTask(@RequestParam("taskId") String taskId,
            @RequestParam("userId") String userId) {
        TaskService taskService = processEngine.getTaskService();
        taskService.delegateTask(taskId, userId);

        return "redirect:/bpm/workspace-listPersonalTasks.do";
    }

    /**
 
View Full Code Here

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

     */
    @RequestMapping("workspace-doDelegateHelp")
    public String doDelegateHelp(@RequestParam("taskId") String taskId,
            @RequestParam("attorney") String attorney) {
        TaskService taskService = processEngine.getTaskService();
        taskService.delegateTask(taskId, attorney);

        return "redirect:/bpm/workspace-listPersonalTasks.do";
    }

    // ~ ======================================================================
View Full Code Here

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

    task = taskService.createTaskQuery().singleResult();
    assertNull(task.getOwner());
    assertNotNull(task.getAssignee());

    // 委派
    taskService.delegateTask(task.getId(), "henryyan");
   
    task = taskService.createTaskQuery().singleResult();
    assertEquals("user1", task.getOwner());

    // 查询被委派的任务
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.