[rules-users] FIT and rules

2011-12-16 Thread gcautiero
Hello to everyone,

i found this useful link for use FIT on drools rule scope.

http://fit-for-rules.sourceforge.net/

someone know other resources ? 
I'm looking for a way to combine the maven plugin (maven fit plug in:
http://mojo.codehaus.org/fit-maven-plugin/usage.html) for fit and
fit-for-rule
library found on the bottom link? i'm interested to execute fit test (with
more html table) when the application is build..

regards,

Gianfranco

--
View this message in context: 
http://drools.46999.n3.nabble.com/FIT-and-rules-tp3591363p3591363.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] guvnor restful api problem

2011-11-29 Thread gcautiero
Hello to everyone,

i'm trying to upload a .drl file using  guvnor's restFul service. But im not
able to get a POST call working.

what i'm trying to do is:

make a call first to get a content of .drl file already stored in Guvnon: 

here the working code using cxf client (as the example in the guvnor doc):

WebClient c = WebClient.create("http://127.0.0.1:8081/";);
String authorizationHeader = "Basic " +
org.apache.cxf.common.util.Base64Utility.encode("guest:".getBytes());
c.header("Authorization", authorizationHeader);
String content =
c.path("http://localhost:8081/guvnor-5.3.0.Final-tomcat-6.0/org.drools.guvnor.Guvnor/api/packages/com.truvo.price/PRICERULE";).accept("text/plain").get(String.class);

then i try to upload the content in another asset 
Here the code that DOSEN'T work:

Response response =
client.path("http://localhost:8081/guvnor-5.3.0.Final-tomcat-6.0/org.drools.guvnor.Guvnor/api/packages/com.truvo.price/price/";).accept("application/xml").post(content);

for this call i get the following error:


Nov 29, 2011 11:23:12 AM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet RestAPIServlet threw exception
java.lang.ArrayIndexOutOfBoundsException: 1
at org.drools.repository.remoteapi.RestAPI.post(RestAPI.java:235)
at
org.drools.guvnor.server.files.RestAPIServlet$1.execute(RestAPIServlet.java:56)
at
org.drools.guvnor.server.files.RepositoryServlet.doAuthorizedAction(RepositoryServlet.java:75)
at
org.drools.guvnor.server.files.RestAPIServlet.doPost(RestAPIServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
at java.lang.Thread.run(Thread.java:662)


someone have a suggestion? or a working example?

tnx

Gianfranco



--
View this message in context: 
http://drools.46999.n3.nabble.com/guvnor-restful-api-problem-tp3544799p3544799.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] guvnor and drl rules file uploading

2011-11-03 Thread gcautiero
Hello,

i'm working with different drools template (.drt) on excel raw data files. I
have an application to generate rules files (.drl) to use it in my
applications. My question is: there is a way in Guvnor to upload a new drl
file? maybe with a restful service? i want upload the file with generating
rules (template +excel data) but the only way to do this right now (version
5.3.0.Final) is to made a new rule and copy all the rules from my generating
process to it.

Regards,

Gianfranco Cautiero

--
View this message in context: 
http://drools.46999.n3.nabble.com/guvnor-and-drl-rules-file-uploading-tp3477473p3477473.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] dsl and metadata rule information

2011-10-26 Thread gcautiero
Tnx. Ill give it a try.

--
View this message in context: 
http://drools.46999.n3.nabble.com/dsl-and-metadata-rule-information-tp3454282p3454831.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] dsl and metadata rule information

2011-10-26 Thread gcautiero
Hello,

I'm not able to find a way to define in my DSL a phrase to add metadata for
a certain rule.
I'm interested to provide something that can help end user to add
data-effective metadata for some rule in the DSLR file.

--
View this message in context: 
http://drools.46999.n3.nabble.com/dsl-and-metadata-rule-information-tp3454282p3454282.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users