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.
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.
On 20 November 2013 05:31, vargheseps <vargheseps4u(a)gmail.com> wrote:
Hai
I have created rules from my application and uploaded to drools engine
through API.
WebClient client =
WebClient.create("http://ip:port
/drools-guvnor/rest/packages/packageName/assets");
Response response= client.accept(MediaType.APPLICATION_ATOM_XML_TYPE)
.type(MediaType.APPLICATION_OCTET_STREAM_TYPE)
.acceptLanguage("java")
.header("slug", "ruleName.drl")
.post("rulecontent");
*But when i am taking the source from drools guvnor i am getting the
dialect 'mvel' but i want dialect 'java'*
--
View this message in context:
http://drools.46999.n3.nabble.com/Change-rules-dielect-to-java-through-ja...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users