Codota Logo
AbstractQuery.evaluateExpressionsAndExecuteList
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now