where can I find the changes between Drools 5.0 and Drools 5.1
by Jeff Parks
I am in the process of updating some of my code to Drools 5.1.1. Classes
have changed packages, which isn't too much of an issue, but other classes,
e.g. org.drools.util.ProviderLocator have disappeared. I need to know what
class has replaced the classes that have disappeared. Is there a document
that describes the changes?
15 years, 10 months
How to create logfile when using ruleAgent and statefulSession
by Solingen, Stephanie
Hi,
Can anyone give me a code example how to create a logfile when using a
rule agent (rulebase) and statefulsession?
The goals is to replace all system.out.println(); statements in de rules
with Log();
(the rules are made with the Guvnor GUI, and I am using Guvnor 5.1 with
a oc4j server)
The text that is in de Log() should then appear in an existing logfile.
Thanx in advance.
15 years, 10 months
I'd like to get Drools 5.0
by 多田丈晃
Hi,
Does anyone know where I can get older version Drools archive?
On my work, I need to use Drools 5.0.
but In Drools download page only have latest version.
Please let me know where is older version archive download page.
15 years, 10 months
Re: [rules-users] Incorrect allowable comparison when using Guvnor GUI Rules - known bug?
by Alex.Porras@dds.net
Stephen Mcgruer <s0840449 <at> sms.ed.ac.uk> wrote:
> Now, I want to match on the fooBar's barInt property being less than a
hundred. So, I click on fooBar,
> and choose the 'barInt' subfield. It appears, *BUT* there is no option
for "is greater than" or "is
> less than", only "is equals to" and "is not equals to"!
I recently downloaded drools 5.1.1 and am experiencing the same issue.
Anyone else?
Cheers,
Alex
15 years, 10 months
Help : How do I retrieve the repository or uuid of assets from java code?
by Han Ming Low
Hi,
I'm trying to construct a url in the format
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html#...
by replacing the #asset=[uuid]
Thus, I would need to know the uuid of each asset in the repository.
I have tried to use the following code
Repository repository;
JCRRepositoryConfigurator configurator = new
JackrabbitRepositoryConfigurator();
repository = configurator.getJCRRepository(
"C:\\Programs\\Drools\\5.1\\jboss-4.2.3.GA\\repository\\" );
Session jcrsession = repository.login(new SimpleCredentials("admin",
"admin1".toCharArray()));
RulesRepository rrepository = new RulesRepository(jcrsession);
or
RulesRepository rrepository = RepositorySessionUtil.getRepository();
My drools persistence is set to MySQL.
So, RepositorySessionUtil.getRepository() kind of work but because it is
retrieving from a new repository, so it does not serve the purpose.
When I put the code above into a jsp in exploded drools-guvnor.war in jboss,
I have the following error.
org.drools.repository.RulesRepositoryException:
javax.jcr.RepositoryException: The repository home C:\Programs\Drools\5.1\
jboss-4.2.3.GA\bin\repository appears to be in use since the file named
.lock is already locked by the current process.
org.drools.repository.RepositorySessionUtil.getRepository(RepositorySessionUtil.java:90)
org.apache.jsp.test_jsp._jspService(test_jsp.java:105)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
But, I'm not even sure if what I'm trying to do is correct.
What I want to do is to be able to retrieve the uuid of the assets in
repository from a web application.
Can someone please help in providing a snippet of code or point me in some
direction on what should I retrieve in order to query the repository.
Thanks.
Han Ming
15 years, 10 months
java.lang.RuntimeException: Unable to load session snapshot
by Gustavo Tenrreiro
Hi,
I am using JPA session persistance. Everything is working fine, then a
rule fires that detects an Event, and after that trying to recreate
the session fails with a:
Caused by: java.lang.RuntimeException: Unable to load session snapshot
at org.drools.persistence.session.JPASessionMarshallingHelper.loadSnapshot(JPASessionMarshallingHelper.java:96)
Can anyone help me with this ?
Thanks
15 years, 10 months
Re: [rules-users] RuleFlowProcessFactory - no XML output?
by Jeff Parks
I should have mentioned that I am using Drools 5.1.1
From: Jeff Parks [mailto:jeff.parks@comcast.net]
Sent: Tuesday, August 31, 2010 4:33 PM
To: 'rules-users(a)lists.jboss.org'
Subject: RuleFlowProcessFactory - no XML output?
I like the idea of creating a Drools Process via the Process API. It fits my
usage model very well . What surprises me is that I have not seen a way to
take the RuleFlowProcess and create a Process in XML format, which I would
think to be a natural extension. I have to think I am missing something -
can someone share me some code snippet that accomplishes my goal?
thanks
15 years, 10 months
Multiple StatefulKnowledgeSessions at a time?
by skasab2s
Hello,
(I'm sorry if this question already has been asked.) My company uses Drools
for answering questions. For every asked question, a new
StateFulknowledgeSession is created and after the question has been answerd
by Drools, the StateFulknowledgeSession is being disposed. Now we have the
situation that multiple questions can be asked at the same point of time.
That's why we have to decide if we should have only one
StatefulKnowledgeSession at a time (i.e execute the questions sequentially)
or allow parallelism (i.e. have many instances of StateFulknowledgeSession
at one time). Which from the both alternatives would you propose to use? On
what could depend our decision?
Many thanks and best regards,
Svetlomir Kasabov.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Multiple-StatefulKnow...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 10 months