Package org.activiti.engine.impl.cmd

Examples of org.activiti.engine.impl.cmd.CompleteTaskCmd


  public void unclaim(String taskId) {
    commandExecutor.execute(new ClaimTaskCmd(taskId, null));
  }

  public void complete(String taskId) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, null));
  }
View Full Code Here


  public void complete(String taskId) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, null));
  }
 
  public void complete(String taskId, Map<String, Object> variables) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, variables));
  }
View Full Code Here

  public void complete(String taskId, Map<String, Object> variables) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, variables));
  }
 
  public void complete(String taskId, Map<String, Object> variables,boolean localScope) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, variables, localScope));
  }
View Full Code Here

            return;
        }
        // 设置变量
        Map<String, Object> variables = new HashMap<String, Object>();
        variables.put("skip", true);
        CompleteTaskCmd command = new CompleteTaskCmd(taskEntity.getId(), variables, true);

        taskService.addComment(taskEntity.getId(), taskEntity.getProcessInstanceId(), "自动跳过");

        // 执行命令,直接完成当前任务
//        System.out.println("准备跳过任务:" + taskEntity.getName() + "-->" + taskDefinitionKey);
View Full Code Here

    ClaimTaskCmd cmd = new ClaimTaskCmd(taskId, userId);
    commandExecutor.execute(cmd);
  }

  public void complete(String taskId) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, null));
  }
View Full Code Here

  public void complete(String taskId) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, null));
  }
 
  public void complete(String taskId, Map<String, Object> variables) {
    commandExecutor.execute(new CompleteTaskCmd(taskId, variables));
  }
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.cmd.CompleteTaskCmd

Copyright © 2018 www.massapicom. 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.