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

Globals can't be used with temporal operators

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.1.0.Beta1
    • None
    • None
    • None

      Assuming:
      global Date now;

      The pattern "Foo( this before now )" will generate various errors.
      The reason is that the Global[X]Extractors (X =

      {"","Date","Number"}

      are erroneously declared as self-referential extractors.
      If Foo is not an @event, a CCE will arise since the operators will use
      "this" rather than the global. Otherwise, the result will be inconsistent

              mfusco@redhat.com Mario Fusco
              dsotty Davide Sottara (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: