[rules-users] Change rules dielect to java through java program(rest api)
Michael Anstis
michael.anstis at gmail.com
Wed Nov 20 04:08:57 EST 2013
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 at 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-java-program-rest-api-tp4026837.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20131120/1b9b47d4/attachment.html
More information about the rules-users
mailing list