Tabnine Logo
MVELRuleEvalResult.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.milyn.rules.mvel.MVELRuleEvalResult
constructor

Best Java code snippets using org.milyn.rules.mvel.MVELRuleEvalResult.<init> (Showing top 3 results out of 315)

origin: org.milyn/milyn-smooks-all

public RuleEvalResult evaluate(String ruleName, CharSequence selectedData, ExecutionContext context) throws SmooksException {
  ExpressionEvaluator evaluator = rules.get(ruleName);
  if (evaluator == null) {
    throw new SmooksException("Unknown rule name '" + ruleName + "' on MVEL RuleProvider '" + name + "'.");
  }
  try {
    return new MVELRuleEvalResult(evaluator.eval(context.getBeanContext().getBeanMap()), ruleName, name, selectedData.toString());
  } catch(Throwable t) {
    return new MVELRuleEvalResult(t, ruleName, name, selectedData.toString());
  }
}
origin: org.milyn/milyn-smooks-rules

public RuleEvalResult evaluate(String ruleName, CharSequence selectedData, ExecutionContext context) throws SmooksException {
  ExpressionEvaluator evaluator = rules.get(ruleName);
  if (evaluator == null) {
    throw new SmooksException("Unknown rule name '" + ruleName + "' on MVEL RuleProvider '" + name + "'.");
  }
  try {
    return new MVELRuleEvalResult(evaluator.eval(context.getBeanContext().getBeanMap()), ruleName, name, selectedData.toString());
  } catch(Throwable t) {
    return new MVELRuleEvalResult(t, ruleName, name, selectedData.toString());
  }
}
origin: org.virtuslab/milyn-smooks-rules

public RuleEvalResult evaluate(String ruleName, CharSequence selectedData, ExecutionContext context) throws SmooksException {
  ExpressionEvaluator evaluator = rules.get(ruleName);
  if (evaluator == null) {
    throw new SmooksException("Unknown rule name '" + ruleName + "' on MVEL RuleProvider '" + name + "'.");
  }
  try {
    return new MVELRuleEvalResult(evaluator.eval(context.getBeanContext().getBeanMap()), ruleName, name, selectedData.toString());
  } catch(Throwable t) {
    return new MVELRuleEvalResult(t, ruleName, name, selectedData.toString());
  }
}
org.milyn.rules.mvelMVELRuleEvalResult<init>

Javadoc

Creates a RuleEvalResult that indicates a successfully executed rule.

Popular methods of MVELRuleEvalResult

  • getRuleName
  • getRuleProviderName
  • getText
  • matched

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Path (java.nio.file)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for Android Studio
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