<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">please ask this question on the USER mailing list, and not the developer mailing list - which is for the core development OF drools, not WITH drools.<div><br></div><div>I suggest you also provide more information, or you will most likely get ignored. Please read anti-pattern instructions on this web page</div><div><a href="http://www.jboss.org/drools/lists">http://www.jboss.org/drools/lists</a></div><div><br></div><div>Mark</div><div><div><div>On 29 Jul 2013, at 20:10, Nuwan Bandara <<a href="mailto:mail.nuwan@gmail.com">mail.nuwan@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><p class="">I’m using the XLS decision table for the drools rules file.
When I use the local drools rules instance, object gets updated and reflects
the changes accordingly but when I use the remote web service call to use the
remote drools engine, rules get executed correctly but updated values does not get
reflected back in the return object.</p><div> <br class="webkit-block-placeholder"></div><p class="">Here’s the function that I use in the decision table (.xls)</p><p class="">function boolean setCTCFlag(Object resultViewMapObj, String
siteCode){</p><p class=""> boolean flag =
false;</p><p class=""> Map<String,
ResultView> resultViewMap = (Map<String, ResultView>)
resultViewMapObj;</p><p class="">
List<ResultView> resultViewList = new
ArrayList<ResultView>();</p><p class=""> resultViewList
= new ArrayList<ResultView> (resultViewMap.values());</p><p class=""> ResultView
resultView = new ResultView();</p><p class=""> resultView =
resultViewList.get(0);</p><p class="">
if(resultView.getSampleView().getSample() != null){</p><p class=""> String
sampleInd = resultView.getSampleView().getSample().getSampleIndicator();</p><p class="">
if(sampleInd != null && sampleInd.length() != 0){</p><p class="">
String[] sampleIndComp =
sampleInd.split(""[^\\w\\s]"");</p><p class="">
for(int i = 0; i<sampleIndComp.length; i++){</p><p class="">
LabelValueView labelValueView = new LabelValueView();</p><p class="">
labelValueView.setLabel(sampleIndComp[i].trim());</p><p class="">
labelValueView.setValue(" ");</p><p class=""> // DOTO: this is the issue</p><p class="">
// folowing line gets
executed but changes do not get reflected in the object.</p><p class="">
// Only happens when this
called remotely. </p><p class="">
resultView.getDynamicFields().put("CTC_CLIENT_FLAG",
labelValueView);</p><p class="">
flag = true;</p><p class=""> }</p><p class=""> }</p><p class=""> }</p><p class=""> return flag;</p><p class=""> }</p></div>
_______________________________________________<br>rules-dev mailing list<br><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-dev</blockquote></div><br></div></body></html>