Super simple question that I have not been able to find any examples on in the documentation.
It shows a code snippet of: Person(pets["rover"].type == "dog") to use as a map accessor.
I am trying to mimic this functionality but can't figure out what Drools is doing here. I assume 'type' is a property of a pet contained within a collection of pets. If someone could explain how this works or point me to where there is a more detailed explanation it would be appreciated.
I have the same question.Can someone who knows about Map Accessor explain me what it means?