0 Replies Latest reply on Feb 14, 2014 2:55 AM by newohybat

    Drools @propertyReactive on Collection property

    newohybat

      Hi,

      not sure why, but can't post anything to Drools section, so I tried my luck in here. I am sorry for any inconvenience it would cause.

       

      How does the @propertyReactive annotation work with Collection property? I have a class A whose property b is instance of ArrayList<String>.

      Does the

      rule "Wonder If Works"

           dialect "mvel"

           when

                $a: A(b contains "token")

           then

                modify($a){

                     setC(5)

                }

      end

      fire every time when a new item is added to list b? Or is it same as with nested accessors?

       

      Also is there any mean in JBoss Devstudio to see which rules were actually fired?

       

      Thanks for your time.

      Jan