Package org.rossonet.ext.rules.mvel
Class MVELCondition
- java.lang.Object
-
- org.rossonet.ext.rules.mvel.MVELCondition
-
-
Constructor Summary
Constructors Constructor Description MVELCondition(java.lang.String expression)Create a newMVELCondition.MVELCondition(java.lang.String expression, org.mvel2.ParserContext parserContext)Create a newMVELCondition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(Facts facts)Evaluate the condition according to the known facts.
-
-
-
Constructor Detail
-
MVELCondition
public MVELCondition(java.lang.String expression)
Create a newMVELCondition.- Parameters:
expression- the condition written in expression language
-
MVELCondition
public MVELCondition(java.lang.String expression, org.mvel2.ParserContext parserContext)Create a newMVELCondition.- Parameters:
expression- the condition written in expression languageparserContext- the MVEL parser context
-
-