Tabnine Logo
QueryVariableValue
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.camunda.bpm.engine.impl.QueryVariableValue (Showing top 20 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 String getName() {
 return wrappedQueryValue.getName();
}
origin: camunda/camunda-bpm-platform

public String getOperatorName() {
 return getOperator().toString();
}
origin: camunda/camunda-bpm-platform

protected void ensureVariablesInitialized() {
 VariableSerializers types = Context.getProcessEngineConfiguration().getVariableSerializers();
 for(QueryVariableValue var : variables) {
  var.initialize(types);
 }
 if (!queries.isEmpty()) {
  for (TaskQueryImpl orQuery: queries) {
   for (QueryVariableValue var : orQuery.variables) {
    var.initialize(types);
   }
  }
 }
}
origin: OrienteerBAP/Orienteer

while(it.hasNext()) {
  ExecutionEntity entity = it.next();
  QueryOperator operator = queryValue.getOperator();
  Object value = entity.getVariable(queryValue.getName());
  Object refValue = queryValue.getValue();
  Comparable<Object> comparable = (value instanceof Comparable && refValue instanceof Comparable)?(Comparable<Object>)value:null;
  boolean hasMatch;
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: camunda/camunda-bpm-platform

public void initializeValue(VariableSerializers serializers) {
 TypedValue typedValue = wrappedQueryValue.getTypedValue();
 initializeValue(serializers, typedValue);
}
origin: camunda/camunda-bpm-platform

protected void ensureVariablesInitialized() {
 VariableSerializers types = Context.getProcessEngineConfiguration().getVariableSerializers();
 for(QueryVariableValue var : variables) {
  var.initialize(types);
 }
 if (!queries.isEmpty()) {
  for (TaskQueryImpl orQuery: queries) {
   for (QueryVariableValue var : orQuery.variables) {
    var.initialize(types);
   }
  }
 }
}
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: camunda/camunda-bpm-platform

public void initializeValue(VariableSerializers serializers) {
 TypedValue typedValue = wrappedQueryValue.getTypedValue();
 initializeValue(serializers, typedValue);
}
origin: camunda/camunda-bpm-platform

public void ensureVariablesInitialized() {
 if (!filterVariables.isEmpty()) {
  VariableSerializers variableSerializers = Context
    .getProcessEngineConfiguration()
    .getVariableSerializers();
  for(QueryVariableValue queryVariableValue : filterVariables) {
   queryVariableValue.initialize(variableSerializers);
  }
 }
}
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 String getOperatorName() {
 return getOperator().toString();
}
origin: camunda/camunda-bpm-platform

public String getName() {
 return wrappedQueryValue.getName();
}
origin: camunda/camunda-bpm-platform

public void initializeValue(VariableSerializers serializers) {
 TypedValue typedValue = wrappedQueryValue.getTypedValue();
 ValueTypeResolver resolver = Context.getProcessEngineConfiguration().getValueTypeResolver();
 Collection<ValueType> concreteTypes = resolver.getSubTypes(typedValue.getType());
 for (ValueType type : concreteTypes) {
  if (type.canConvertFromTypedValue(typedValue)) {
   TypedValue convertedValue = type.convertFromTypedValue(typedValue);
   SingleQueryVariableValueCondition aggregatedValue = new SingleQueryVariableValueCondition(wrappedQueryValue);
   aggregatedValue.initializeValue(serializers, convertedValue);
   aggregatedValues.add(aggregatedValue);
  }
 }
}
origin: camunda/camunda-bpm-platform

public void ensureVariablesInitialized() {
 if (!filterVariables.isEmpty()) {
  VariableSerializers variableSerializers = Context
    .getProcessEngineConfiguration()
    .getVariableSerializers();
  for(QueryVariableValue queryVariableValue : filterVariables) {
   queryVariableValue.initialize(variableSerializers);
  }
 }
}
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

protected TypedValueSerializer determineSerializer(VariableSerializers serializers, TypedValue value) {
 TypedValueSerializer serializer = serializers.findSerializerForValue(value);
 if(serializer.getType() == ValueType.BYTES){
  throw new ProcessEngineException("Variables of type ByteArray cannot be used to query");
 }
 else if(serializer.getType() == ValueType.FILE){
  throw new ProcessEngineException("Variables of type File cannot be used to query");
 }
 else if(serializer instanceof JPAVariableSerializer) {
  if(wrappedQueryValue.getOperator() != QueryOperator.EQUALS) {
   throw new ProcessEngineException("JPA entity variables can only be used in 'variableValueEquals'");
  }
 }
 else {
  if(!serializer.getType().isPrimitiveValueType()) {
   throw new ProcessEngineException("Object values cannot be used to query");
  }
 }
 return serializer;
}
origin: org.camunda.bpm/camunda-engine

public String getName() {
 return wrappedQueryValue.getName();
}
origin: camunda/camunda-bpm-platform

public void initializeValue(VariableSerializers serializers) {
 TypedValue typedValue = wrappedQueryValue.getTypedValue();
 ValueTypeResolver resolver = Context.getProcessEngineConfiguration().getValueTypeResolver();
 Collection<ValueType> concreteTypes = resolver.getSubTypes(typedValue.getType());
 for (ValueType type : concreteTypes) {
  if (type.canConvertFromTypedValue(typedValue)) {
   TypedValue convertedValue = type.convertFromTypedValue(typedValue);
   SingleQueryVariableValueCondition aggregatedValue = new SingleQueryVariableValueCondition(wrappedQueryValue);
   aggregatedValue.initializeValue(serializers, convertedValue);
   aggregatedValues.add(aggregatedValue);
  }
 }
}
org.camunda.bpm.engine.implQueryVariableValue

Javadoc

Represents a variable value used in queries.

Most used methods

  • <init>
  • getName
  • getOperator
  • initialize
  • getTypedValue
  • getValue

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Github Copilot alternatives
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