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

Binding variable or condition

    XMLWordPrintable

Details

    Description

      In this example I have more classes that extends EntityBase (my class). In my intention, i would assign to variable $entity one of this class that is inserted in Ksession fact.

      I insert fact of CtbMovrCoan class
      In when statement of the rule at row 16, variable $entity is correctely,
      but in then statement variable $entity becomes JtbRLavt class (first declared in then cond) and this behavior throw a ClassCastException, obviously.

      Can Help me?

      Attachments

        1. rule.drl
          1 kB
        2. workaround.drl
          1 kB

        Activity

          People

            mfusco@redhat.com Mario Fusco
            ssante85 Sante Stanisci (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: