congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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