use of org.camunda.bpm.engine.impl.QueryOperator in project camunda-bpm-platform by camunda.
the class JsonTaskQueryVariableValueConverter method toObject.
public TaskQueryVariableValue toObject(JSONObject json) {
String name = json.getString("name");
Object value = json.get("value");
QueryOperator operator = QueryOperator.valueOf(json.getString("operator"));
boolean isTaskVariable = json.getBoolean("taskVariable");
boolean isProcessVariable = json.getBoolean("processVariable");
return new TaskQueryVariableValue(name, value, operator, isTaskVariable, isProcessVariable);
}
use of org.camunda.bpm.engine.impl.QueryOperator in project camunda-bpm-platform by camunda.
the class JsonTaskQueryConverter method addVariables.
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);
}
}
Aggregations