1 Reply Latest reply on Jun 15, 2010 8:45 PM by Kinjal Khandhar

    Drools Expert: Map accessor

    Pete MacDonald Newbie

      Super simple question that I have not been able to find any examples on in the documentation.

      From: http://www.jboss.org/drools/drools-expert.html

      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.

      Thanks
      PMac