use of org.activiti.engine.impl.cmd.SetTaskVariablesCmd in project Activiti by Activiti.
the class TaskServiceImpl method setVariable.
public void setVariable(String taskId, String variableName, Object value) {
if (variableName == null) {
throw new ActivitiIllegalArgumentException("variableName is null");
}
Map<String, Object> variables = new HashMap<String, Object>();
variables.put(variableName, value);
commandExecutor.execute(new SetTaskVariablesCmd(taskId, variables, false));
}
use of org.activiti.engine.impl.cmd.SetTaskVariablesCmd in project Activiti by Activiti.
the class TaskServiceImpl method setVariableLocal.
public void setVariableLocal(String taskId, String variableName, Object value) {
if (variableName == null) {
throw new ActivitiIllegalArgumentException("variableName is null");
}
Map<String, Object> variables = new HashMap<String, Object>();
variables.put(variableName, value);
commandExecutor.execute(new SetTaskVariablesCmd(taskId, variables, true));
}
Aggregations