I have a Drools rule to which I send a card filled with an element, but when it is executed, I have an element. Why do I get null when this value should be "Y" for the value? When I set a breakpoint in the ACDebug.debug () method and checked the map after executing the $ map.put () function, it looks good, it has a "Y" value for the value, but after fulfilling my rules, do I have null? Does anyone have similar problems?
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")
then
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
zekou source
share