category rules in Guvnor packages
by Vincent Legendre
Hi all,
I can't make my rules inherit from category rules.
I saw a JIRA reporting a malfunction for this, but it shoud be corrected.
I am using version 5.0.1
I tried a category rule writen un DRL, or in BRL. Same for rules that
should inherit the LHS (tested with pure DRL, BRL ...) from one of their
categories. And yes I tried to inspect the big DRL generated from
package, and also tried with compiled binary.
Does anyone have some kind of doc or sample using this function ?
Is there some restrictions on rules than can use this, either for
category rules and/or rules that should inherit some LHS ?
Thanks !
13 years, 9 months
How implement custom editor for Drools Flow work definitions?
by Mattias Nilsson
Hi,
I'm trying to implement a custom editor for my own work definitions in
Drools Flow but run into classloading issues when I try to start the
custom editor from Eclipse.
I have tried various ways of building and packaging my class but all
result in NoClassDefFoundError, LinkageError, ClassCastException etc.
Does anyone know what's the trick to successfully making and using an
own implementation of org.drools.process.core.WorkEditor? Any pointers
or example code would be much appreciated.
Thanks,
Mattias Nilsson
13 years, 9 months
GC overhead limit exceeded
by LeoIo
Hi,
I am getting "java.lang.OutOfMemoryError: GC overhead limit exceeded" error.
Using Drools 5.0.1 or 5.1.
There are about 1500 objects in the working memory. Everything goes fine
until I add an additional condition on a list attribute. I am trying to get
the size() of this list and compare it to an integer. (Actually the list
size is never greater 2) All objects from the list attribute are already in
working memory, so I think there is no need to add them to WM once again.
Statistics shows a dramatic increase on number of objects using this
constraint.
So once again. Suppose I have 1500 objects of type "man". It has a list
attribute "children".
Following structure works:
If man.name == Peter, print Peter's age.
But the following scenario doesn't work for me (GC error):
If (man.name == Peter) && (man.children.size() > 1), print man's age.
Any ideas on how to fix that? May be reformulate the problem? Or fine tune
WM settings somehow?
Thanks in advance.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/GC-overhead-limit-exc...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Migrate the package from Derby to MS SQL server
by bbarani
Hi,
I have rules created under a package using Derby as a backend. I am not
trying to configure SQL Server as backend but not sure how to migrate all
the rules created before (using Derby) to the new server.
I configured the persistence manager (both version / workspace to use MS SQL
server) and it creates new tables in SQL server but looks liks theres no
data in it.. Is there a way to import the data in to SQL server?
<PersistenceManager
class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
</PersistenceManager>
Thanks,
Barani
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Migrate-the-package-f...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
drools vs jbpm
by woods5242-photography@yahoo.com
Hi,
We need a rules engine for our project and I am trying to determine the main
differences between Drools and JBPM. Can anyone on here provide a brief
explanation maybe offering why one is better than the other, chances of them
being merged or one being retired over the other? Are they competing projects?
thanks!
13 years, 9 months
Guvnor 5.1.1 Memory leak on Tomcat
by bbarani
Hi,
I have deployed Guvnor 5.1.1 in Tomcat.
I am getting the below error message whenever I shut down Tomcat server.
Sep 21, 2010 3:19:52 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesJdbc
SEVERE: The web application [/drools-5.1.1-guvnor] registered the JBDC
driver [o
rg.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it when the
web
application was stopped. To prevent a memory leak, the JDBC Driver has been
forc
ibly unregistered.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [Timer-1] but has failed to stop it. This is very likely to create
a m
emory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [pool-1-thread-1] but has failed to stop it. This is very likely
to cr
eate a memory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [Thread-23] but has failed to stop it. This is very likely to
create a
memory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearRefere
ncesThreads
SEVERE: The web application [/drools-5.1.1-guvnor] appears to have started a
thr
ead named [Timer-5] but has failed to stop it. This is very likely to create
a m
emory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@b54ef7]) and
a v
alue of type [org.apache.jackrabbit.core.query.lucene.PerQueryCache] (value
[org
.apache.jackrabbit.core.query.lucene.PerQueryCache@1536ecf]) but failed to
remov
e it when the web application was stopped. This is very likely to create a
memor
y leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value
[org.a
pache.derby.iapi.sql.dictionary.TableDescriptor$1@8fdcd1]) and a value of
type [
java.util.WeakHashMap] (value [{=null, ={1, 2, 3}, =null, =null, =null, ={1,
2},
=null, =null, =null, =null, ={1, 2, 3}}]) but failed to remove it when the
web
application was stopped. This is very likely to create a memory leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@ea4081]) and
a v
alue of type [org.apache.derby.iapi.services.context.ContextManager] (value
[org
.apache.derby.iapi.services.context.ContextManager@18facfb]) but failed to
remov
e it when the web application was stopped. This is very likely to create a
memor
y leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@ea4081]) and
a v
alue of type [org.apache.derby.iapi.services.context.ContextManager] (value
[org
.apache.derby.iapi.services.context.ContextManager@1efb003]) but failed to
remov
e it when the web application was stopped. This is very likely to create a
memor
y leak.
Sep 21, 2010 3:19:53 PM org.apache.catalina.loader.WebappClassLoader
clearThread
LocalMap
SEVERE: The web application [/drools-5.1.1-guvnor] created a ThreadLocal
with ke
y of type [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value
[org.a
pache.derby.iapi.sql.dictionary.TableDescriptor$1@8fdcd1]) and a value of
type [
java.util.WeakHashMap] (value [{=null}]) but failed to remove it when the
web ap
plication was stopped. This is very likely to create a memory leak.
Has anyone faced this type of issue?
Thanks,
Barani
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-5-1-1-Memory-l...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
instance level logger
by marton.bokor
Hi All,
I have
logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "rulelog");
But actually I would like to create audit logs for all process instances
with a different file name.
Is it possible to create log files per process instance.
Or the only way to do this is to create a seperate session for all
processes?
Is it possible to close the log file automatically when a process flow has
finished it's execution.
Thanks,
Marton
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/instance-level-logger...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Test Scenarios variable binding not working for true/false picklist
by apatel
Hi,
I have a rule that does a null check, as well as a false check on a fact
variable that sets another variable to 'Declined' when it is false or null.
I am testing this using a Test Scenario. I have two test scenarios. One that
check when the fact variable is true and the other when it is false, but
none for the null scenario. When I keep the null check the Decline test
works but the Approve fails. Conversely when I remove the null check the
Approve scenario works but the Decline fails. My conclusion is that the test
fact variable value is not getting bound.
Furthermore the variable that is being set in the test scenario is on a
BankingData fact which is a bind variable on an UnderwritingData fact.
Either the simple variable binding on the BankingData fact is not working or
the fact binding on the UnderwritingData is not working.
How do I debug this. Also is there some specific procedure to follow to bind
a fact? Does the fact that is being bound have to be created before the fact
it is being bound to?
Any help is much appreciated.
Kind regards,
Amisha
ps I also wanted to add that I compiled the Packages in Guvnor and used them
in my Java Tests which are the same as the Test Scenarios and that worked.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Test-Scenarios-variab...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months