protected internal virtual void addVariables(TaskQueryImpl query, JsonArray variables, bool isTaskVariable, bool isProcessVariable) { foreach (JsonElement variable in variables) { JsonObject variableObj = JsonUtil.getObject(variable); string name = JsonUtil.getString(variableObj, NAME); object rawValue = JsonUtil.getRawObject(variableObj, "value"); QueryOperator @operator = Enum.Parse(typeof(QueryOperator), JsonUtil.getString(variableObj, "operator")); query.addVariable(name, rawValue, @operator, isTaskVariable, isProcessVariable); } }