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

type casting via the # symbol hangs drools

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.1.Final, 6.0.0.CR1
    • 5.5.0.Final, 6.0.0.Beta2
    • None
    • None
    • Hide

      try to run attached example

      Show
      try to run attached example

      when trying to assign type casted value to variable in when clausule Drools hangs without any message on rule load. It even hangs my Eclipse environment in build process.

      this will hang:
      $q:Message(id=="item", answered==true, $v:value#DataItemPrice)

      this will not hang:
      $q:Message(id=="item", answered==true, value instanceof DataItemPrice, $v:value)

      Maybe it is not supported to type cast the property into variable in this way, but it should not hang the Drools engine.

      I will try to add full example.

            mfusco@redhat.com Mario Fusco
            k2s_jira Martin Minka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: