Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-320

Drools plugin Rete Tree viewer does not work with timer and || operator.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.1.0.Beta1
    • 6.0.0.CR5
    • None
    • Mac OS-X 10.9, JBoss Developer Studio 7, Oracle Hotspot 1.7.0_45, Drools-jBPM Eclipse plugin 6.0.0.CR5

      See this example project: https://github.com/DuncanDoyle/DroolsReteViewer , which is based on the Drools Eclipse sample project.

      The 'src/main/resources/rules/Sample.drl' is a valid DRL file, but it cannot be opened in the Rete Tree because of:

      • the 'timer (int: 10s)' definition in rule "GoodBye-Timer". This gives the error:
        Rete Tree Build Error!
        Reason:
        org.drools.core.RuntimeDroolsException:
        java.lang.reflect.InvocationTargetException: [Rete(0)]
      • the '||' operator in the rule "Hello World-Or". This gives the error:
        Rete Tree Build Error!
        Reason:
        java.lang.NullPointerException: null

      This forces us to change our rule definition files to be able to inspect the Rete Tree (which we require to analyse the tree for possible optimizations).

              mfusco@redhat.com Mario Fusco
              rhn-gps-ddoyle Duncan Doyle (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: