Tabnine Logo
AbstractQuery.evaluateExpressionsAndExecuteList
Code IndexAdd Tabnine to your IDE (free)

How to use
evaluateExpressionsAndExecuteList
method
in
org.camunda.bpm.engine.impl.AbstractQuery

Best Java code snippets using org.camunda.bpm.engine.impl.AbstractQuery.evaluateExpressionsAndExecuteList (Showing top 12 results out of 315)

origin: camunda/camunda-bpm-platform

public U executeSingleResult(CommandContext commandContext) {
 List<U> results = evaluateExpressionsAndExecuteList(commandContext, null);
 if (results.size() == 1) {
  return results.get(0);
 } else if (results.size() > 1) {
  throw new ProcessEngineException("Query return "+results.size()+" results instead of max 1");
 }
 return null;
}
origin: camunda/camunda-bpm-platform

public U executeSingleResult(CommandContext commandContext) {
 List<U> results = evaluateExpressionsAndExecuteList(commandContext, null);
 if (results.size() == 1) {
  return results.get(0);
 } else if (results.size() > 1) {
  throw new ProcessEngineException("Query return "+results.size()+" results instead of max 1");
 }
 return null;
}
origin: camunda/camunda-bpm-platform

public Object execute(CommandContext commandContext) {
 if (resultType==ResultType.LIST) {
  return evaluateExpressionsAndExecuteList(commandContext, null);
 } else if (resultType==ResultType.SINGLE_RESULT) {
  return executeSingleResult(commandContext);
 } else if (resultType==ResultType.LIST_PAGE) {
  return evaluateExpressionsAndExecuteList(commandContext, null);
 } else if (resultType == ResultType.LIST_IDS) {
  return evaluateExpressionsAndExecuteIdsList(commandContext);
 } else {
  return evaluateExpressionsAndExecuteCount(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

public Object execute(CommandContext commandContext) {
 if (resultType==ResultType.LIST) {
  return evaluateExpressionsAndExecuteList(commandContext, null);
 } else if (resultType==ResultType.SINGLE_RESULT) {
  return executeSingleResult(commandContext);
 } else if (resultType==ResultType.LIST_PAGE) {
  return evaluateExpressionsAndExecuteList(commandContext, null);
 } else if (resultType == ResultType.LIST_IDS) {
  return evaluateExpressionsAndExecuteIdsList(commandContext);
 } else {
  return evaluateExpressionsAndExecuteCount(commandContext);
 }
}
origin: camunda/camunda-bpm-platform

@SuppressWarnings("unchecked")
public List<U> list() {
 this.resultType = ResultType.LIST;
 if (commandExecutor!=null) {
  return (List<U>) commandExecutor.execute(this);
 }
 return evaluateExpressionsAndExecuteList(Context.getCommandContext(), null);
}
origin: camunda/camunda-bpm-platform

@SuppressWarnings("unchecked")
public List<U> list() {
 this.resultType = ResultType.LIST;
 if (commandExecutor!=null) {
  return (List<U>) commandExecutor.execute(this);
 }
 return evaluateExpressionsAndExecuteList(Context.getCommandContext(), null);
}
origin: camunda/camunda-bpm-platform

@SuppressWarnings("unchecked")
public List<U> listPage(int firstResult, int maxResults) {
 this.firstResult = firstResult;
 this.maxResults = maxResults;
 this.resultType = ResultType.LIST_PAGE;
 if (commandExecutor!=null) {
  return (List<U>) commandExecutor.execute(this);
 }
 return evaluateExpressionsAndExecuteList(Context.getCommandContext(), new Page(firstResult, maxResults));
}
origin: camunda/camunda-bpm-platform

@SuppressWarnings("unchecked")
public List<U> listPage(int firstResult, int maxResults) {
 this.firstResult = firstResult;
 this.maxResults = maxResults;
 this.resultType = ResultType.LIST_PAGE;
 if (commandExecutor!=null) {
  return (List<U>) commandExecutor.execute(this);
 }
 return evaluateExpressionsAndExecuteList(Context.getCommandContext(), new Page(firstResult, maxResults));
}
origin: org.camunda.bpm/camunda-engine

public U executeSingleResult(CommandContext commandContext) {
 List<U> results = evaluateExpressionsAndExecuteList(commandContext, null);
 if (results.size() == 1) {
  return results.get(0);
 } else if (results.size() > 1) {
  throw new ProcessEngineException("Query return "+results.size()+" results instead of max 1");
 }
 return null;
}
origin: org.camunda.bpm/camunda-engine

public Object execute(CommandContext commandContext) {
 if (resultType==ResultType.LIST) {
  return evaluateExpressionsAndExecuteList(commandContext, null);
 } else if (resultType==ResultType.SINGLE_RESULT) {
  return executeSingleResult(commandContext);
 } else if (resultType==ResultType.LIST_PAGE) {
  return evaluateExpressionsAndExecuteList(commandContext, null);
 } else if (resultType == ResultType.LIST_IDS) {
  return evaluateExpressionsAndExecuteIdsList(commandContext);
 } else {
  return evaluateExpressionsAndExecuteCount(commandContext);
 }
}
origin: org.camunda.bpm/camunda-engine

@SuppressWarnings("unchecked")
public List<U> list() {
 this.resultType = ResultType.LIST;
 if (commandExecutor!=null) {
  return (List<U>) commandExecutor.execute(this);
 }
 return evaluateExpressionsAndExecuteList(Context.getCommandContext(), null);
}
origin: org.camunda.bpm/camunda-engine

@SuppressWarnings("unchecked")
public List<U> listPage(int firstResult, int maxResults) {
 this.firstResult = firstResult;
 this.maxResults = maxResults;
 this.resultType = ResultType.LIST_PAGE;
 if (commandExecutor!=null) {
  return (List<U>) commandExecutor.execute(this);
 }
 return evaluateExpressionsAndExecuteList(Context.getCommandContext(), new Page(firstResult, maxResults));
}
org.camunda.bpm.engine.implAbstractQueryevaluateExpressionsAndExecuteList

Popular methods of AbstractQuery

  • addValidator
  • checkQueryOk
  • direction
  • evaluateExpressions
  • evaluateExpressionsAndExecuteCount
  • evaluateExpressionsAndExecuteIdsList
  • executeCount
  • executeIdsList
  • executeList
    Executes the actual query to retrieve the list of results.
  • executeSingleResult
  • extend
  • getExpressions
  • extend,
  • getExpressions,
  • getMethod,
  • getOrderingProperties,
  • hasExcludingConditions,
  • orderBy,
  • setExpressions,
  • validate

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • CodeWhisperer 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