private void addVariables(TaskQueryImpl query, JSONArray variables, boolean isTaskVariable, boolean isProcessVariable) {
for (int i = 0; i < variables.length(); i++) {
JSONObject variable = variables.getJSONObject(i);
String name = variable.getString(NAME);
Object value = variable.get("value");
QueryOperator operator = QueryOperator.valueOf(variable.getString("operator"));
query.addVariable(name, value, operator, isTaskVariable, isProcessVariable);
}
}