<div dir="ltr"><div><div>The rule dialect is defined within the rule itself; so if you view the rule source in Guvnor for &quot;ruleName.drl&quot; you&#39;ll see it&#39;s maven. You can set the rule&#39;s dialect by adding a rule attribute.<br>
</div><br></div>WebClient.acceptLanguage() sets the HTTP accept-language header; which sets the acceptable human language response; e.g. en-US. Specifying a value &quot;java&quot; has no effect on rules.<code></code></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 20 November 2013 05:31, vargheseps <span dir="ltr">&lt;<a href="mailto:vargheseps4u@gmail.com" target="_blank">vargheseps4u@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hai<br>
<br>
     I have created rules from my application and uploaded to drools engine<br>
through API.<br>
<br>
 WebClient client =<br>
WebClient.create(&quot;http://ip:port/drools-guvnor/rest/packages/packageName/assets&quot;);<br>
 Response response= client.accept(MediaType.APPLICATION_ATOM_XML_TYPE)<br>
<br>
.type(MediaType.APPLICATION_OCTET_STREAM_TYPE)<br>
                                     .acceptLanguage(&quot;java&quot;)<br>
                                    .header(&quot;slug&quot;, &quot;ruleName.drl&quot;)<br>
                                    .post(&quot;rulecontent&quot;);<br>
 *But when i am taking the source from drools guvnor i am getting the<br>
dialect &#39;mvel&#39; but i want dialect &#39;java&#39;*<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Change-rules-dielect-to-java-through-java-program-rest-api-tp4026837.html" target="_blank">http://drools.46999.n3.nabble.com/Change-rules-dielect-to-java-through-java-program-rest-api-tp4026837.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div>