}
public Object getVariable(String taskId, String variableName) {
Set<String> variableNames = new HashSet<String>();
variableNames.add(variableName);
GetTaskVariablesCmd cmd = new GetTaskVariablesCmd(taskId, variableNames);
Map<String, Object> variables = commandService.execute(cmd);
return variables.get(variableName);
}