java - Maps and strings in Drools rules -


i have following drools rule send map filled element , when gets executed have element . why null when should "y" value? when put breakpoint in acdebug.debug() method , inspect map after $map.put() executed looks good, has "y" value, after rules executed have null? has have similar problem?

import java.util.map; import java.util.hashmap; import edu.abc.acdebug;  rule "postprocessor 8"     ruleflow-group "supress-processor"     when         $map:map(keyset contains "standard_address:street_name")             acdebug.debug($map, "map before put: ");         $map.put("/locationlist/sourceaddress/fullstreet",new string("y"));         acdebug.debug($map, "map after put: ");         $map.remove("standard_address:street_name"); end 

after have done changes map, need update. lets working memory know modified map.

add following line:

update( $map ); 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -