<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>

<p class=""> </p>

<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&lt;String,
ResultView&gt; resultViewMap = (Map&lt;String, ResultView&gt;)
resultViewMapObj;</p>

<p class="">       
List&lt;ResultView&gt; resultViewList = new
ArrayList&lt;ResultView&gt;();</p>

<p class="">        resultViewList
= new ArrayList&lt;ResultView&gt; (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 &amp;&amp; sampleInd.length() != 0){</p>

<p class="">               
String[] sampleIndComp =
sampleInd.split(&quot;&quot;[^\\w\\s]&quot;&quot;);</p>

<p class="">               
for(int i = 0; i&lt;sampleIndComp.length; i++){</p>

<p class="">                       
LabelValueView labelValueView = new LabelValueView();</p>

<p class="">                       
labelValueView.setLabel(sampleIndComp[i].trim());</p>

<p class="">                       
labelValueView.setValue(&quot; &quot;);</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(&quot;CTC_CLIENT_FLAG&quot;,
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>