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

Binding of List stored in Map doesn't work in special case

XMLWordPrintable

    • Hide
      1. Extract the attached project
      2. Run it as mvn clean install exec:java
      3. In the console will appear output: [a]
      4. Now change one line in the file Sample.rule in the following way:
        • from: $m: Message( $itemA: items#Map.get("keyA") )
        • to: $m: Message( $itemA: items["keyA"] )
      5. Save the project and run in the same way
      6. Nothing will appear in the console, however the output should be the same as in the first case
      Show
      Extract the attached project Run it as mvn clean install exec:java In the console will appear output: [a] Now change one line in the file Sample.rule in the following way: from: $m: Message( $itemA: items#Map.get("keyA") ) to: $m: Message( $itemA: items ["keyA"] ) Save the project and run in the same way Nothing will appear in the console, however the output should be the same as in the first case
    • NEW
    • NEW

      User has possibility to bind a List stored as item of a Map in his rule. However this dosn't work in one special case. For more details see the steps to reproduce.

      This issue was discussed with mmortari@redhat.com and he also provided the workaround used in reproducer. Thanks.

              mfusco@redhat.com Mario Fusco
              rh-ee-jomarko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: