<div dir="ltr"><div><div>The rule dialect is defined within the rule itself; so if you view the rule source in Guvnor for "ruleName.drl" you'll see it's maven. You can set the rule'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 "java" 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"><<a href="mailto:vargheseps4u@gmail.com" target="_blank">vargheseps4u@gmail.com</a>></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("http://ip:port/drools-guvnor/rest/packages/packageName/assets");<br>
Response response= client.accept(MediaType.APPLICATION_ATOM_XML_TYPE)<br>
<br>
.type(MediaType.APPLICATION_OCTET_STREAM_TYPE)<br>
.acceptLanguage("java")<br>
.header("slug", "ruleName.drl")<br>
.post("rulecontent");<br>
*But when i am taking the source from drools guvnor i am getting the<br>
dialect 'mvel' but i want dialect 'java'*<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>