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

Enable recursive traiting and dynamic field typing

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Critical Critical
    • 5.5.1.Final, 6.0.0.Final
    • 5.5.0.Final
    • None
    • None

      Consider the following scenario:

      declare trait A
      sub : int
      end
      declare X end

      declare trait Foo
      fld : A
      end

      declare Bar
      @Traitable( logic = true ) // new mode
      fld : X
      end

      If an instance b of Bar is traited with Foo, the value of its field "fld"
      should in turn be traited with A.
      Truth maintenance and transparent casting are required.
      The goal is to write rules such as:

      when Foo( fld isA A, fld.sub == 0, .... ) then ..

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

              Created:
              Updated:
              Resolved: