2 Replies Latest reply on Jan 13, 2009 6:28 AM by tfennelly

    ContentBasedRouter

    poyge394

      Hello,
      Is it possible to somehow mix xpath and java code in an *drl file.

      I get org.drools.rule.InvalidRulePackage: [5] Unable to expand: $message
      when i add this property to ContentBasedRouter action.


      And as I understand i most have that property set to use xpath expression in my *.drl file.

      is it possible to mix xpath and java code in an *.drl ?





        • 1. Re: ContentBasedRouter
          poyge394

          the property i add is this:

          <property name="ruleLanguage" value="XPathLanguage.dsl"/>
          




          • 2. Re: ContentBasedRouter
            tfennelly

            It's probably not possible via the dsls that are supplied with the ESB out of the box, but it may be supported by drools itself, in which case you could write your own dsl (by extending/modifying the existing xpath based dsl). Check the drools docs re writing a custom dsl.