Tabnine Logo
QueryVariableValue.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.camunda.bpm.engine.impl.QueryVariableValue
constructor

Best Java code snippets using org.camunda.bpm.engine.impl.QueryVariableValue.<init> (Showing top 14 results out of 315)

origin: camunda/camunda-bpm-platform

public void addFilterVariable(String name, Object value) {
 QueryVariableValue variableValue = new QueryVariableValue(name, value, QueryOperator.EQUALS, true);
 this.filterVariables.add(variableValue);
}
origin: camunda/camunda-bpm-platform

public void addFilterVariable(String name, Object value) {
 QueryVariableValue variableValue = new QueryVariableValue(name, value, QueryOperator.EQUALS, true);
 this.filterVariables.add(variableValue);
}
origin: camunda/camunda-bpm-platform

public void setFilterVariables(Map<String, Object> filterVariables) {
 QueryVariableValue variableValue;
 for (Map.Entry<String, Object> filter : filterVariables.entrySet()) {
  variableValue = new QueryVariableValue(filter.getKey(), filter.getValue(), null, false);
  this.filterVariables.add(variableValue);
 }
}
origin: camunda/camunda-bpm-platform

public void setFilterVariables(Map<String, Object> filterVariables) {
 QueryVariableValue variableValue;
 for (Map.Entry<String, Object> filter : filterVariables.entrySet()) {
  variableValue = new QueryVariableValue(filter.getKey(), filter.getValue(), null, false);
  this.filterVariables.add(variableValue);
 }
}
origin: camunda/camunda-bpm-platform

public HistoricVariableInstanceQuery variableValueEquals(String variableName, Object variableValue) {
 ensureNotNull("variableName", variableName);
 ensureNotNull("variableValue", variableValue);
 this.variableName = variableName;
 queryVariableValue = new QueryVariableValue(variableName, variableValue, QueryOperator.EQUALS, true);
 return this;
}
origin: camunda/camunda-bpm-platform

public HistoricVariableInstanceQuery variableValueEquals(String variableName, Object variableValue) {
 ensureNotNull("variableName", variableName);
 ensureNotNull("variableValue", variableValue);
 this.variableName = variableName;
 queryVariableValue = new QueryVariableValue(variableName, variableValue, QueryOperator.EQUALS, true);
 return this;
}
origin: camunda/camunda-bpm-platform

protected void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope) {
 ensureNotNull(NotValidException.class, "name", name);
 if(value == null || isBoolean(value)) {
  // Null-values and booleans can only be used in EQUALS and NOT_EQUALS
  switch(operator) {
  case GREATER_THAN:
   throw new NotValidException("Booleans and null cannot be used in 'greater than' condition");
  case LESS_THAN:
   throw new NotValidException("Booleans and null cannot be used in 'less than' condition");
  case GREATER_THAN_OR_EQUAL:
   throw new NotValidException("Booleans and null cannot be used in 'greater than or equal' condition");
  case LESS_THAN_OR_EQUAL:
   throw new NotValidException("Booleans and null cannot be used in 'less than or equal' condition");
  case LIKE:
   throw new NotValidException("Booleans and null cannot be used in 'like' condition");
  }
 }
 queryVariableValues.add(new QueryVariableValue(name, value, operator, processInstanceScope));
}
origin: camunda/camunda-bpm-platform

protected void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope) {
 ensureNotNull(NotValidException.class, "name", name);
 if(value == null || isBoolean(value)) {
  // Null-values and booleans can only be used in EQUALS and NOT_EQUALS
  switch(operator) {
  case GREATER_THAN:
   throw new NotValidException("Booleans and null cannot be used in 'greater than' condition");
  case LESS_THAN:
   throw new NotValidException("Booleans and null cannot be used in 'less than' condition");
  case GREATER_THAN_OR_EQUAL:
   throw new NotValidException("Booleans and null cannot be used in 'greater than or equal' condition");
  case LESS_THAN_OR_EQUAL:
   throw new NotValidException("Booleans and null cannot be used in 'less than or equal' condition");
  case LIKE:
   throw new NotValidException("Booleans and null cannot be used in 'like' condition");
  }
 }
 queryVariableValues.add(new QueryVariableValue(name, value, operator, processInstanceScope));
}
origin: org.camunda.bpm/camunda-engine

public void addFilterVariable(String name, Object value) {
 QueryVariableValue variableValue = new QueryVariableValue(name, value, QueryOperator.EQUALS, true);
 this.filterVariables.add(variableValue);
}
origin: org.camunda.bpm/camunda-engine

public void setFilterVariables(Map<String, Object> filterVariables) {
 QueryVariableValue variableValue;
 for (Map.Entry<String, Object> filter : filterVariables.entrySet()) {
  variableValue = new QueryVariableValue(filter.getKey(), filter.getValue(), null, false);
  this.filterVariables.add(variableValue);
 }
}
origin: org.camunda.bpm/camunda-engine

public HistoricVariableInstanceQuery variableValueEquals(String variableName, Object variableValue) {
 ensureNotNull("variableName", variableName);
 ensureNotNull("variableValue", variableValue);
 this.variableName = variableName;
 queryVariableValue = new QueryVariableValue(variableName, variableValue, QueryOperator.EQUALS, true);
 return this;
}
origin: org.camunda.bpm.cockpit/camunda-cockpit-plugin-base

private List<QueryVariableValue> createQueryVariableValues(VariableSerializers variableTypes, List<VariableQueryParameterDto> variables) {
 List<QueryVariableValue> values = new ArrayList<QueryVariableValue>();
 if (variables == null) {
  return values;
 }
 for (VariableQueryParameterDto variable : variables) {
  QueryVariableValue value = new QueryVariableValue(
    variable.getName(),
    variable.getValue(),
    ConditionQueryParameterDto.getQueryOperator(variable.getOperator()),
    false);
  value.initialize(variableTypes);
  values.add(value);
 }
 return values;
}
origin: org.camunda.bpm.cockpit/camunda-cockpit-plugin-base

 private List<QueryVariableValue> createQueryVariableValues(VariableSerializers variableTypes, List<VariableQueryParameterDto> variables) {

  List<QueryVariableValue> values = new ArrayList<QueryVariableValue>();

  if (variables == null) {
   return values;
  }

  for (VariableQueryParameterDto variable : variables) {
   QueryVariableValue value = new QueryVariableValue(
     variable.getName(),
     variable.getValue(),
     ConditionQueryParameterDto.getQueryOperator(variable.getOperator()),
     false);

   value.initialize(variableTypes);
   values.add(value);
  }

  return values;
 }
}
origin: org.camunda.bpm/camunda-engine

protected void addVariable(String name, Object value, QueryOperator operator, boolean processInstanceScope) {
 ensureNotNull(NotValidException.class, "name", name);
 if(value == null || isBoolean(value)) {
  // Null-values and booleans can only be used in EQUALS and NOT_EQUALS
  switch(operator) {
  case GREATER_THAN:
   throw new NotValidException("Booleans and null cannot be used in 'greater than' condition");
  case LESS_THAN:
   throw new NotValidException("Booleans and null cannot be used in 'less than' condition");
  case GREATER_THAN_OR_EQUAL:
   throw new NotValidException("Booleans and null cannot be used in 'greater than or equal' condition");
  case LESS_THAN_OR_EQUAL:
   throw new NotValidException("Booleans and null cannot be used in 'less than or equal' condition");
  case LIKE:
   throw new NotValidException("Booleans and null cannot be used in 'like' condition");
  }
 }
 queryVariableValues.add(new QueryVariableValue(name, value, operator, processInstanceScope));
}
org.camunda.bpm.engine.implQueryVariableValue<init>

Popular methods of QueryVariableValue

  • getName
  • getOperator
  • initialize
  • getTypedValue
  • getValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JButton (javax.swing)
  • JList (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now