Date: Fri, 10 Apr 2009 17:02:14 -0700
From: sdoyl...@yahoo.com
To: rules-users@lists.jboss.org
Subject: [rules-users] Keep getting error trying to access value in hash map.
I'm trying to extract the value from a hashmap after first extracting a key
and I keep getting the same error.
Hi,
I have many rules. These rules may or may not belong to the same set. However,
based on their name they can be grouped. Say all rules starting with
Traffic_Rule, Criminal_Rule etc.
Q1. I want to check after assertion of a fact (A.) how many and (B.) which all
rules executed for Traffic_Rule
It was my understanding based on other posts that was the required syntax for
dealing with with a Map in Drools. I'll try what you suggest.
Alessandro Terrinoni wrote:
Date: Fri, 10 Apr 2009 17:02:14 -0700
From: sdoyl...@yahoo.com
To: rules-users@lists.jboss.org
Subject:
samd wrote:
It was my understanding based on other posts that was the required syntax for
dealing with with a Map in Drools. I'll try what you suggest.
var.map['key] is valid syntax.
But looking at your example codes is your map, so if you do
codes.values you are returning a set. you can't