Tabnine Logo
camundafeel.javax.el
Code IndexAdd Tabnine to your IDE (free)

How to use camundafeel.javax.el

Best Java code snippets using camundafeel.javax.el (Showing top 8 results out of 315)

origin: camunda/camunda-bpm-platform

public Method resolveFunction(String prefix, String localName) {
 for (FunctionMapper functionMapper : functionMappers) {
  Method method = functionMapper.resolveFunction(prefix, localName);
  if (method != null) {
   return method;
  }
 }
 throw LOG.unknownFunction(prefix, localName);
}
origin: camunda/camunda-bpm-platform

protected ValueExpression transformSimpleUnaryTests(String simpleUnaryTests, String inputName, ELContext elContext) {
 String juelExpression = transformToJuelExpression(simpleUnaryTests, inputName);
 try {
  return expressionFactory.createValueExpression(elContext, juelExpression, Object.class);
 }
 catch (ELException e) {
  throw LOG.invalidExpression(simpleUnaryTests, e);
 }
}
origin: camunda/camunda-bpm-platform

public boolean evaluateSimpleUnaryTests(String simpleUnaryTests, String inputName, VariableContext variableContext) {
 try {
  ELContext elContext = createContext(variableContext);
  ValueExpression valueExpression = transformSimpleUnaryTests(simpleUnaryTests, inputName, elContext);
   return (Boolean) valueExpression.getValue(elContext);
 }
 catch (FeelMissingFunctionException e) {
  throw LOG.unknownFunction(simpleUnaryTests, e);
 }
 catch (FeelMissingVariableException e) {
  if (inputName.equals(e.getVariable())) {
   throw LOG.unableToEvaluateExpressionAsNotInputIsSet(simpleUnaryTests, e);
  }
  else {
   throw LOG.unknownVariable(simpleUnaryTests, e);
  }
 }
 catch (FeelConvertException e) {
  throw LOG.unableToConvertValue(simpleUnaryTests, e);
 }
 catch (ELException e) {
  if (e.getCause() instanceof FeelMethodInvocationException) {
   throw LOG.unableToInvokeMethod(simpleUnaryTests, (FeelMethodInvocationException) e.getCause());
  }
  else {
   throw LOG.unableToEvaluateExpression(simpleUnaryTests, e);
  }
 }
}
origin: org.camunda.bpm.dmn/camunda-engine-feel-juel

public boolean evaluateSimpleUnaryTests(String simpleUnaryTests, String inputName, VariableContext variableContext) {
 try {
  ELContext elContext = createContext(variableContext);
  ValueExpression valueExpression = transformSimpleUnaryTests(simpleUnaryTests, inputName, elContext);
   return (Boolean) valueExpression.getValue(elContext);
 }
 catch (FeelMissingFunctionException e) {
  throw LOG.unknownFunction(simpleUnaryTests, e);
 }
 catch (FeelMissingVariableException e) {
  if (inputName.equals(e.getVariable())) {
   throw LOG.unableToEvaluateExpressionAsNotInputIsSet(simpleUnaryTests, e);
  }
  else {
   throw LOG.unknownVariable(simpleUnaryTests, e);
  }
 }
 catch (FeelConvertException e) {
  throw LOG.unableToConvertValue(simpleUnaryTests, e);
 }
 catch (ELException e) {
  if (e.getCause() instanceof FeelMethodInvocationException) {
   throw LOG.unableToInvokeMethod(simpleUnaryTests, (FeelMethodInvocationException) e.getCause());
  }
  else {
   throw LOG.unableToEvaluateExpression(simpleUnaryTests, e);
  }
 }
}
origin: camunda/camunda-bpm-platform

public ValueExpression resolveVariable(String variable) {
 if (variableContext.containsVariable(variable)) {
  Object value = unpackVariable(variable);
  return expressionFactory.createValueExpression(value, Object.class);
 }
 else {
  throw LOG.unknownVariable(variable);
 }
}
origin: org.camunda.bpm.dmn/camunda-engine-feel-juel

public Method resolveFunction(String prefix, String localName) {
 for (FunctionMapper functionMapper : functionMappers) {
  Method method = functionMapper.resolveFunction(prefix, localName);
  if (method != null) {
   return method;
  }
 }
 throw LOG.unknownFunction(prefix, localName);
}
origin: org.camunda.bpm.dmn/camunda-engine-feel-juel

protected ValueExpression transformSimpleUnaryTests(String simpleUnaryTests, String inputName, ELContext elContext) {
 String juelExpression = transformToJuelExpression(simpleUnaryTests, inputName);
 try {
  return expressionFactory.createValueExpression(elContext, juelExpression, Object.class);
 }
 catch (ELException e) {
  throw LOG.invalidExpression(simpleUnaryTests, e);
 }
}
origin: org.camunda.bpm.dmn/camunda-engine-feel-juel

public ValueExpression resolveVariable(String variable) {
 if (variableContext.containsVariable(variable)) {
  Object value = unpackVariable(variable);
  return expressionFactory.createValueExpression(value, Object.class);
 }
 else {
  throw LOG.unknownVariable(variable);
 }
}
camundafeel.javax.el

Most used classes

  • ELException
  • ExpressionFactory
  • FunctionMapper
  • ValueExpression
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