<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi guys,<div><br></div><div>I'm having the follow issue: I have an object that contains a list. The object is inserted on the memory but not the list, so I want to do something like this:</div><div><br></div><div><i>when</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">        </span>$obj: Object()</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">        </span>eval($obj.hasInList("item"))</i></div><div><i>then</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">        </span>$obj.replaceInList("item", "replacement");</i></div><div><i>end</i></div><div><br></div><div>How do I trigger the update for $obj? I've tried to add Java Beans support but that didn't help, neither @watch nor&nbsp;@PropertyChangeSupport on java class.</div><div><br></div><div>Im watching the debug but don't see the object being modified and I've rules that were triggered that shouldn't be because the value was already changed.</div><div><br></div><div>Inserting the list on the working memory won't help me, as I need to search like this:</div><div><br></div><div><i>when</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">        </span>$obj: Object()</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">        </span>eval($obj.hasInList("item item1 item2 item3"))</i></div><div><i>then</i></div><div><i><span class="Apple-tab-span" style="white-space:pre">        </span>$obj.replaceInList("item item1 item2 item3", "singleItem")</i></div><div><i>end</i></div><div><br></div><div>The example above search for several items (each one is a list element), so I need to replace them all for a single element.</div><div><br></div><div>Any thoughts?</div><div><br></div><div>Thanks in advance.</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>Paulo Reis</div><div><a href="mailto:casmeiron@gmail.com">casmeiron@gmail.com</a></div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br></div></body></html>