Package org.camunda.bpm.engine.impl

Examples of org.camunda.bpm.engine.impl.QueryOperator


  }

  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);
  }
View Full Code Here


  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);
    }
  }
View Full Code Here

  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);
    }
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.QueryOperator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.