Package org.jbpm.pvm.internal.cmd

Examples of org.jbpm.pvm.internal.cmd.SetTaskVariablesCmd


  public Map<String, Object> getVariables(String taskDbid, Set<String> variableNames) {
    return commandService.execute(new GetTaskVariablesCmd(taskDbid, variableNames));
  }

  public void setVariables(String taskDbid, Map<String, Object> variables) {
    SetTaskVariablesCmd cmd = new SetTaskVariablesCmd(taskDbid);
    cmd.setVariables(variables);
    commandService.execute(cmd);
  }
View Full Code Here


  public void completeTask(String taskId, String outcome) {
    commandService.execute(new CompleteTaskCmd(taskId, outcome));
  }
 
  public void completeTask(String taskId, String outcome, Map<String, Object> variables) {
    SetTaskVariablesCmd setTaskVariablesCmd = new SetTaskVariablesCmd(taskId);
    setTaskVariablesCmd.setVariables(variables);
    CompositeCmd compositeCmd = new CompositeCmd();
    compositeCmd.addCommand(setTaskVariablesCmd);
    compositeCmd.addCommand(new CompleteTaskCmd(taskId, outcome));
    commandService.execute(compositeCmd);
  }
View Full Code Here

  public Map<String, Object> getVariables(String taskDbid, Set<String> variableNames) {
    return commandService.execute(new GetTaskVariablesCmd(taskDbid, variableNames));
  }

  public void setVariables(String taskDbid, Map<String, Object> variables) {
    SetTaskVariablesCmd cmd = new SetTaskVariablesCmd(taskDbid);
    cmd.setVariables(variables);
    commandService.execute(cmd);
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.cmd.SetTaskVariablesCmd

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.