Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1262

DSL Parser "eval"

    XMLWordPrintable

Details

    Description

      [when]of type Item=Item()
      [when]- Title equals "

      {value}"=eval(title.isEqual("{value}

      ")
      [when]- Event equals "

      {value}"=eval(id.isEqual("{value}

      ")
      [then]Log : "

      {message}"=System.out.println("{message}

      ");

      the dslr File:

      expander Test.dsl

      rule "Your First Rule"
      when
      $p : of type Item

      • Title equals "test"
      • Event equals "test"
        then
        #actions
        end

      resolves to (could be seen in the drl viewer)

      rule "Your First Rule"

      when
      $p :Item( eval(title.isEqual("test", eval(id.isEqual("test") ) )
      then
      #actions

      end

      Attachments

        Issue Links

          Activity

            People

              etirelli Edson Tirelli
              markush2007 markush2007 (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: