I use Drool Guvnor version 5.2.0.BRMS. I try to updating my Web decision table with Rest API from user guide <a href="http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2735">http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2735</a><br>
<br><u>This my source code:</u><br><br><i>package com.sample;<br><br>import java.math.BigDecimal;<br>import java.util.ArrayList;<br>import java.util.List;<br><br>import javax.ws.rs.core.Response;<br><br>import org.apache.cxf.jaxrs.client.WebClient;<br>
import org.drools.ide.common.client.modeldriven.dt52.DTCellValue52;<br>import org.drools.ide.common.client.modeldriven.dt52.GuidedDecisionTable52;<br>import org.drools.ide.common.server.util.GuidedDTXMLPersistence;<br><br>
public class Update {<br>    public static void main(String args[]){<br>        WebClient client = WebClient.create(&quot;<a href="http://127.0.0.1:8081/">http://127.0.0.1:8081/</a>&quot;);<br>        String authorizationHeader = &quot;Basic &quot; + org.apache.cxf.common.util.Base64Utility.encode(&quot;admin:admin&quot;.getBytes());<br>
        client.header(&quot;Authorization&quot;, authorizationHeader);<br>        String content=client.path(&quot;jboss-brms/rest/packages/mortgages/assets/Pricing%20loans/source&quot;).accept(&quot;text/plain&quot;).get(String.class);<br>
        //List&lt;DTCellValue52&gt; lData = new ArrayList&lt;DTCellValue52&gt;();<br>        List&lt;List&lt;DTCellValue52&gt;&gt; llData = new ArrayList&lt;List&lt;DTCellValue52&gt;&gt;();    <br>        System.out.println(content);<br>
        GuidedDecisionTable52 dt = GuidedDTXMLPersistence.getInstance().unmarshal(content);<br>        //llData = dt.getData();<br>        String oldContent = GuidedDTXMLPersistence.getInstance().marshal(dt);<br>        System.out.println(&quot;Original : \n============\n&quot;+oldContent);<br>
        llData = dt.getData();<br>        System.out.println(&quot;Numeric List idx-1 data-0 = &quot;+llData.get(1).get(2).getNumericValue()); <br>        <b style="color:rgb(0,0,153)">llData.get(1).get(2).setNumericValue(new BigDecimal(5000));</b><br>
        <br><br>        dt.setData(llData);<br>        String newContent = GuidedDTXMLPersistence.getInstance().marshal(dt);<br>        System.out.println(&quot;Become : \n============\n&quot;+newContent);<br>        <br>
        WebClient client2 = WebClient.create(&quot;<a href="http://127.0.0.1:8081/">http://127.0.0.1:8081/</a>&quot;);<br>        client2.header(&quot;Authorization&quot;, authorizationHeader);<br>        Response response=     client2.path(&quot;jboss-brms/rest/packages/mortgages/assets/Pricing%20loans/source&quot;).accept(&quot;text/xml&quot;).put(newContent);<br>
        System.out.println(&quot;succeed&quot;);<br>        System.out.println(response.getMetadata());<br>    }<br>}</i><br><br><br>I just try to set new value with 5000.<br>This code doesn&#39;t retrieve error, but the result is not true. My &quot;Pricing loan&quot; asset still not updated with new set value.<br>
<br>Anyone can help? <br clear="all"><br><br><br>Best Regards.<br>