Session schedule change
by Mark Proctor
I've been requested to move the technical "Advanced Engine" session to
the last day, so that the user target sessions are consecutive, as
people who attend monday's primer probably want to attend the 'Domain
Specific Workflow", but not the "Advanced Engine".
So I'm going to swap "Drools 5.0 Domain Specific Workflow" which is on
the thursday to the Wednesday and "Drools 5.0 Advanced Engine" will move
to the Thursday.
Do other people think that's ok, any objections? That means the talks
would now look as follows:
Drools 5.0 Primer : Monday 1st of June 10.00 to 13.00
* The new features in Drools 5.0 will be covered at an end user
level. This includes all the drools projects, Guvnor, Flow, Fusion
and Expert. This is suitable for anyone with minimal previous
Drools experience who just want to know "what's new".
Community Lightening Talks : Monday 1st of June 13.30 to 14.30
* 20 minute community lightening talks about their experiences with
drools.
o Sun will talk about Drools in their Desktop Configurator
<http://www.sun.com/products/dc/>
Drools 5.0 Guvnor Internals : Tuesday 10.00 to 12.00
* The internals of Guvnor will be discussed and how all the parts
come together and current issues and directions we wish to take
the project. This is suitable for anyone with minimal previous
Drools experience, but ideally you should be aware of GWT, JCR and
Guvnor in general. This is targetted at people who wish to extend
Guvnor with new features or re-use/embed existing aspects of Guvnor.
Drools 5.0 Domain Specific Workflow : Wednesday 10.00 to 12.00
* We will show how Drools Flow can be extended for domain specific
workflow, with a focus on the pluggable Work Items and Eclipse. We
will also cover the pluggable workflow framework for customised
execution behaviour, such as is used to provide OSWorkflow
compatability. This is suitable for anyone with a java and eclipse
background, ideally you should have some understanding of what
Drools and especially Drools Flow is.
Drools 5.0 Advanced Engine : Thursday 10.00 to 13.00
* This will be a deep dive for the technical on Rete enhancements.
We will cover the asymmetrical Rete implementation, as compared to
the traditional symmetrical approach, and how we enhanced it for
event processing and workflow. This is targetted at experienced
people, who already have an understanding of Rete and wish to
understand the latest research and innovations - not for the feint
hearted.
Mark
15 years, 8 months
Re: configuring guvnor to use mySQL
by phil went
If there is no error, then it is unlikely whatever changes you have made are
being picked up. Not sure if the repository.xml gets created from the
current dir or not (am a drools/java newbie), but try making an explicit
change to the default home directory in
drools-guvnor.war/WEB-INF/components.xml to remove any doubts about which
file you are editing.
Keep in mind that repository.xml is a template for the workspace.xml, so you
may need to regen/populate your changes (a new clean home dir setting will
do this too).
Once you get an error, it may get easier ;->
Phil
> Hi, I'm trying to configure guvnor to use an external database
> (mySQL) as its datastore. But I can't get it to work, it seems to
> ignore any change I make.
>
> I followed the directions from the project docs. Deployed guvnor (on
> JBoss SOA Platform 4.3) , and edited the repository.xml that got
> created in bin. I commented out the existing PersistenceManager
> config from <workspace> and added this:
>
> <PersistenceManager
> class
> =
> "org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
> <param name="driver" value="com.mysql.jdbc.Driver"/>
> <param name="url" value="jdbc:mysql://localhost:3306/
> brms"/>
> <param name="user" value="brms_user"/>
> <param name="password" value="brms_password"/>
> <param name="schemaObjectPrefix" value="${wsp.name}_"/>
> <param name="schema" value="mysql"/>
> </PersistenceManager>
>
>
15 years, 8 months
Date format [MMM-dd-yyyy] can NOT work in Chinese environment. How to set locale or language of drools?
by Zeke
Hi, Friends:
I am using Drools 4.0.7. I set the date format as [MMM-dd-yyyy], My
machine locale is China, and the language is Chinese. I find that if I have
a rule like "when date > Jan-01-2009", drools will throw exception like
"Jan-01-2009 does not follow [MMM-dd-yyyy]". But if I change "Jan" to
Chinese charactor which is "一月", runtime will be OK. So I think it is a
locale/language issue.
Is there anyway to set locale/language of drools? That is even if my
environment is Chinese, I still can use the English date format? Or is there
any other way can help me out?
Thanks
- Zeke
15 years, 8 months
high cpu usage
by techy
Hello
My app is functioning consumer/producer model.
1.Producer reads the data from DB and inserts to blocking queue
2.Consumer reads the data from queue and execute the rules using drools
stateless session.
Both producer and consumer run asynchronously.
in my testing I found the following
1. for 1000 facts at a time and no rules in drl, cpu usage is maintained at
25-30% in my PC(Intel core 2 CPU,2.13 GH,2G RAM) - with no rules in drl, Is
this cpu usage acceptable?
2. for 1000 facts at a time and ~60 rules in drl, cpu usage is maintained at
50-60% on the same PC.
3. If I have 1 sec wait between each execution of rules in consumer, then
cpu usage is maintained < 5%
high CPU usage is being big concern to me. Is this expected while using
drools? Do others see same cpu usage too? Please share your thoughts.
appreciate your input.
Thanks
--
View this message in context: http://www.nabble.com/high-cpu-usage-tp22691131p22691131.html
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months
Problem with execution server
by Michael Finger
I'm running CR1 (Guvnor and exec server) on Tomcat (tried v 5XX and 6XX)
I've tried this with the mortgage package and then went simpler, I'm
getting the same error.
The package now has one rule:
when
eval(true)
then
System.out.println("It works");
Compiles fine on govner, etc.
My rule agent configuration is:
newInstance=true
#file=/foo/bar/boo.pkg /foo/bar/boo2.pkg
#dir=/my/dir
url=http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/foo/test
#localCacheDir=/foo/bar/cache
poll=30
name=MyConfig
When I post to the url (via poster in firefox) I get:
<html><head><title>Apache Tomcat/5.5.17 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>The server encountered an internal
error () that prevented it from fulfilling this
request.</u></p><p><b>exception</b>
<pre>com.thoughtworks.xstream.io.StreamException: : only whitespace
content allowed before start tag and not . (position: START_DOCUMENT
seen .... @1:1)
com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78)
com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137)
com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:130)
com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:109)
com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:94)
com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48)
com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44)
com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49)
com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
org.drools.server.KnowledgeStatelessServlet.doService(KnowledgeStatelessServlet.java:133)
org.drools.server.KnowledgeStatelessServlet.doPost(KnowledgeStatelessServlet.java:82)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/5.5.17 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/5.5.17</h3></body></html>
The full stack trace in the log doesn't contain much more info:
Apr 1, 2009 11:07:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1402 ms
RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:21 MDT 2009): Configuring
with newInstance=true, secondsToRefresh=30
RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:21 MDT 2009): Configuring
package provider : URLScanner monitoring UR
Ls:
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/foo/...
RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:23 MDT 2009): Applying
changes to the rulebase.
RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:23 MDT 2009): Creating a new
rulebase as per settings.
RuleAgent(MyConfig) INFO (Wed Apr 01 11:07:23 MDT 2009): Adding package
called foo
Apr 1, 2009 11:07:23 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet statelessService threw exception
com.thoughtworks.xstream.io.StreamException: : only whitespace content
allowed before start tag and not . (posi
tion: START_DOCUMENT seen .... @1:1)
at
com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:78)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:137)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:130)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:109)
at
com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:94)
at
com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:48)
at
com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:44)
at
com.thoughtworks.xstream.io.xml.XppDriver.createReader(XppDriver.java:49)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
at
org.drools.server.KnowledgeStatelessServlet.doService(KnowledgeStatelessServlet.java:133)
at
org.drools.server.KnowledgeStatelessServlet.doPost(KnowledgeStatelessServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProto
col.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Any ideas?
Thanks,
Mike
CONFIDENTIALITY NOTICE: This message is intended only for the use and review of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message solely to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone or return email. Thank you.
15 years, 8 months
ClassCastException when firing rules
by seemamani
hi,
We are using Drools 4.0.7 in a web application deployed in WebSphere 6.1.
Occasionally, we have rule engine failure caused by RuntimeDroolsException
(whose root cause is shown as ClassCastException) when firing rules. Other
times, the rules are executing without errors. Here is the stack trace of
the exception. What are the possible reasons?
Thanks,
Seema
org.drools.RuntimeDroolsException: Exception executing predicate eval(
inventory.leaseInformation != null )
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:216)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:137)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:318)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:318)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:162)
at org.drools.reteoo.Rete.assertObject(Rete.java:175)
at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192)
at
org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:71)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:911)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:883)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:684)
at
com.adesa.business.framework.rules.process.drools.ManagedStatefulSession.init(ManagedStatefulSession.java:87)
at
com.adesa.business.framework.rules.process.drools.ManagedStatefulSession.fireAllRules(ManagedStatefulSession.java:100)
at
com.adesa.business.framework.rules.process.drools.RuleEngineImpl.execute(RuleEngineImpl.java:60)
at
com.adesa.business.framework.rules.interceptor.RulesInterceptor.applyAnnotedRules(RulesInterceptor.java:109)
at
com.adesa.business.framework.rules.interceptor.RulesInterceptor.applyRules(RulesInterceptor.java:80)
at sun.reflect.GeneratedMethodAccessor575.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:597)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:583)
at
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:60)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:629)
at
com.adesa.business.rules.RuleHandler$$EnhancerByCGLIB$$3ab6eda.fireUpdatePricing(<generated>)
at
com.adesa.business.auction.manager.SaleEventManagerImpl.updatePricing(SaleEventManagerImpl.java:2599)
at
com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfAuction(SaleEventManagerImpl.java:1993)
at
com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfGroundingSaleEventForHyundai(SaleEventManagerImpl.java:1783)
at
com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfGroundingSaleEvent(SaleEventManagerImpl.java:1180)
at
com.adesa.business.auction.manager.SaleEventManagerImpl.cascadeAtEndOfGroundingSaleEvent(SaleEventManagerImpl.java:1134)
at
com.adesa.business.auction.service.AuctionServiceImpl.cascadeAtEndOfGroundingSaleEvent(AuctionServiceImpl.java:766)
at sun.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at
com.adesa.business.framework.logging.LoggingInterceptor.profileLog(LoggingInterceptor.java:136)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:597)
at
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:583)
at
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:60)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:54)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:54)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy58.cascadeAtEndOfGroundingSaleEvent(Unknown Source)
at
com.adesa.business.pricing.ejb.PricingBean.updateMBPPrice(PricingBean.java:112)
at
com.adesa.business.pricing.ejb.EJSRemoteStatelessPricing_a0966b04.updateMBPPrice(EJSRemoteStatelessPricing_a0966b04.java:183)
at
com.adesa.business.pricing.ejb._EJSRemoteStatelessPricing_a0966b04_Tie.updateMBPPrice(_EJSRemoteStatelessPricing_a0966b04_Tie.java:243)
at
com.adesa.business.pricing.ejb._EJSRemoteStatelessPricing_a0966b04_Tie._invoke(_EJSRemoteStatelessPricing_a0966b04_Tie.java:108)
at
com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:621)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:474)
at com.ibm.rmi.iiop.ORB.process(ORB.java:503)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1571)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2701)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2575)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:62)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by:
java.lang.ClassCastException: com.adesa.data.grounding.pojo.Inventory
incompatible with
com.adesa.data.grounding.pojo.Inventory$$EnhancerByCGLIB$$de81aab3
at ASMAccessorImpl_11448003161226563261710.getValue(Unknown Source)
at
org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode.java:22)
at
org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.java:21)
at
org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:21)
at org.mvel.MVELRuntime.execute(MVELRuntime.java:90)
at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)
at org.mvel.MVEL.executeExpression(MVEL.java:235)
at
org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:45)
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:209)
--
View this message in context: http://www.nabble.com/ClassCastException-when-firing-rules-tp20694738p206...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months
Trying to get Sliding Windows to work
by ober0n
Hi, I am having trouble understanding how to use sliding windows. Here are
the relevant snippets of code I added to the Hello World example under
Drools Fusion. I also added a timestamp to the Message class (with
corresponding get and set functions).
DroolsTest.java:
for(int i=0; i < 6; i++) {
Thread.sleep(10000);
currDate = new Date();
Message message = new Message();
message.setMessage("Hello World");
message.setStatus(Message.HELLO);
message.setTemporalStamp(currDate);
ksession.insert(message);
}
ksession.fireAllRules();
Sample.drl:
declare Message
@role( event )
@timestamp( temporalStamp )
end
rule "Hello World"
when
m : Message( status == Message.HELLO, myMessage : message, ts :
temporalStamp ) over window:time( 15s )
then
System.out.println( myMessage + ": In the 1 minute window with timestamp:
" + ts );
End
My intention was to print out all messages with status = HELLO AND within 15
seconds of inserting the message into the session.
I thought what would happen is 2 out of the 6 Messages I sent would be
printed out. But, instead, all 6 messages I sent are printed.
What am I doing wrong?
--
View this message in context: http://www.nabble.com/Trying-to-get-Sliding-Windows-to-work-tp22735051p22...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months
configuring guvnor to use mySQL as its data store
by Darrin Mison
Hi, I'm trying to configure guvnor to use an external database
(mySQL) as its datastore. But I can't get it to work, it seems to
ignore any change I make.
I followed the directions from the project docs. Deployed guvnor (on
JBoss SOA Platform 4.3) , and edited the repository.xml that got
created in bin. I commented out the existing PersistenceManager
config from <workspace> and added this:
<PersistenceManager
class
=
"org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
<param name="driver" value="com.mysql.jdbc.Driver"/>
<param name="url" value="jdbc:mysql://localhost:3306/
brms"/>
<param name="user" value="brms_user"/>
<param name="password" value="brms_password"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
<param name="schema" value="mysql"/>
</PersistenceManager>
I've added the mysql jdbc jar to the server config lib directory,
created an empty database and have granted all rights to the specified
database user. I made all these changes after halting the server.
But after starting it up again it just seems to ignore all of that and
continue using the previous derby config.
Anyone got any ideas ?
15 years, 8 months
Drools flow and BPEL (Drools 5.0.0.M5)
by Umesh Wankhede
Hi
I am trying to evaluate various features (rules and workflow) of Drools
5.0. What I understand from docs (drools-docs-flow.pdf - page 5) is that
the Drools flow engine is based on generic process engine that allows
the execution of different process languages like RuleFlow, BPEL,
OSWorkflow, etc. Although I am able to do PoC (Proof of Concept) with
RuleFlow, there isn't any documentation/samples available for using BPEL
as process language. Also I don't find any more information on blogs, etc.
If anyone has done something similar, please let me know, or any
pointers would help.
Thanks
Umesh
Legal Notice: This transmission, including any attachments, is confidential, proprietary, and may be privileged. It is intended solely for
the intended recipient. If you are not the intended recipient, you have received this transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this transmission, or any of the information included therein, is unauthorized and strictly
prohibited. If you have received this transmission in error, please immediately notify the sender by reply and permanently delete all copies of
this transmission and its attachments
15 years, 8 months
Jar
by Femke De Backere
Hi!
Yesterday I tried to jar my Drools application. At first I got a few
errors trying to jar (error opening zip file) in the version CR1.
Finally I tried a downgrade to M5, and the jar seemed to be created
correctly (using the export function of eclipse). But when I tried to
run the jar, something went wrong, my application doesn't run as it
should. How can I make een runnable jar of my Drools application?
Thx,
Femke
15 years, 8 months