Class MVELAction

  • All Implemented Interfaces:
    Action

    public class MVELAction
    extends java.lang.Object
    implements Action
    This class is an implementation of Action that uses MVEL to execute the action.
    • Constructor Summary

      Constructors 
      Constructor Description
      MVELAction​(java.lang.String expression)
      Create a new MVELAction.
      MVELAction​(java.lang.String expression, org.mvel2.ParserContext parserContext)
      Create a new MVELAction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(Facts facts)
      Execute the action when the rule's condition evaluates to true.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MVELAction

        public MVELAction​(java.lang.String expression)
        Create a new MVELAction.
        Parameters:
        expression - the action written in expression language
      • MVELAction

        public MVELAction​(java.lang.String expression,
                          org.mvel2.ParserContext parserContext)
        Create a new MVELAction.
        Parameters:
        expression - the action written in expression language
        parserContext - the MVEL parser context
    • Method Detail

      • execute

        public void execute​(Facts facts)
        Description copied from interface: Action
        Execute the action when the rule's condition evaluates to true.
        Specified by:
        execute in interface Action
        Parameters:
        facts - known at the time of execution of the action