Re: [rules-users] add guvnor-webapp-core as a dependency to project

2013-03-05 Thread Toni Rikkola
I doubt there are any docs for this yet :)
Unfortunately at this point you need to check where the modules you need are 
yourself. Just search for the class in guvnor repository that implements the 
interface, they should be all there.
I would also like to warn you that the module structure in Guvnor will change 
before 6.0 gets out. 

Toni

On Mar 1, 2013, at 7:05 PM, kooper wrote:

 Ok, I think I got it(but I could be wrong). It seems that I cannot use 
 guvnor-webapp-core as a dependency, outside of guvnor-webapp-drools war. As
 guvnor-webapp-core has CDI annotations on interfaces and and abstract
 classes that are not implemented in guvnor-webapp-core. So I need to
 implement them in my app before deploying, think just missed smth during
 documentation reading.
 
 Thanks everyone for your help :). 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/add-guvnor-webapp-core-as-a-dependency-to-project-tp4022632p4022656.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] deadlock

2013-03-05 Thread Mark Proctor
Can you please try the snapshots marked as 5.5.1 (which is actually for the 5.6 
release) and let us know if you still have problems:
http://snapshots.jboss.org/maven2/org/drools/drools-core/

We will also need some sort of test case to reproduce the issue.

Mark
On 5 Mar 2013, at 04:12, Smita S. Deshpande smita.deshpa...@mastek.com wrote:

 Hi,
  
 We are currently using drools 5.0.1 for processing business rules. But we are 
 currently facing an issue where if we invoke the rule using 10 concurrent 
 requests , thread gets locked . The error is as below .
  
 Deadlock/Blocked
 Monitor
 Owns Monitor Lock on 
 org/drools/rule/JavaDialectRuntimeData$PackageClassLoader@0E99F9B8/0E99F9C4 
 Waiting for Monitor Lock on 
 org/drools/rule/CompositeClassLoader@0DB50DC0/0DB50DCC
 Java Stack
 at java/lang/ClassLoader.loadClass(ClassLoader.java:606(Compiled Code)) 
 at java/lang/Class.forNameImpl(Native Method) 
 at java/lang/Class.forName(Class.java:163(Compiled Code)) 
 at 
 org/drools/rule/JavaDialectRuntimeData$PackageClassLoader.loadClass(JavaDialectRuntimeData.java:458(Compiled
  Code)) 
 at java/lang/ClassLoader.loadClass(ClassLoader.java:606(Compiled Code)) 
 at 
 /Rule_AutoUW_Rule_BR12Constants_153_0ConsequenceInvoker.evaluate(Rule_AutoUW_Rule_BR12Constants_153_0ConsequenceInvoker.java:16)
 at 
 org/drools/common/DefaultAgenda.fireActivation(DefaultAgenda.java:934(Compiled
  Code)) 
 at 
 org/drools/common/DefaultAgenda.fireNextItem(DefaultAgenda.java:885(Compiled 
 Code)) 
 at 
 org/drools/common/DefaultAgenda.fireAllRules(DefaultAgenda.java:1086(Compiled 
 Code)) 
 at 
 org/drools/common/AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:661(Compiled
  Code)) 
 at 
 org/drools/common/AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:637(Compiled
  Code)) 
 at 
 org/drools/reteoo/ReteooStatelessSession.execute(ReteooStatelessSession.java:203(Compiled
  Code))
  
  
 Can you please advice .This has been occurring on Production systems and 
 causing failures
  
 Thanks  Regards,
 Smita Deshpande
 Technical Specialist - DU UK Insurance
 Mastek Ltd | Cerebrum,2nd Floor, KalyaniNagar, Pune, Maharashtra, INDIA
 (M)(0)9823041314 | (T) 91 20 66072000 Extn - 2256 | VOIP: 729 | www.mastek.com
 Email:- smita.deshpa...@mastek.com
  
 
 
 MASTEK LTD.
 In the US, we're called MAJESCOMASTEK
 
 ~~
 Opinions expressed in this e-mail are those of the individual and not that of 
 Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
 does not accept any responsibility or liability for it. This e-mail and 
 attachments (if any) transmitted with it are confidential and/or privileged 
 and solely for the use of the intended person or entity to which it is 
 addressed. Any review, re-transmission, dissemination or other use of or 
 taking of any action in reliance upon this information by persons or entities 
 other than the intended recipient is prohibited. This e-mail and its 
 attachments have been scanned for the presence of computer viruses. It is the 
 responsibility of the recipient to run the virus check on e-mails and 
 attachments before opening them. If you have received this e-mail in error, 
 kindly delete this e-mail from desktop and server.
 ~~
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] add guvnor-webapp-core as a dependency to project

2013-03-05 Thread kooper
Thank you. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/add-guvnor-webapp-core-as-a-dependency-to-project-tp4022632p4022687.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] Potential memory leak in package analysis tool in Guvnor 5.3

2013-03-05 Thread Chris Selwyn
I have recently been looking at upgrading our installation from 5.1 to 5.3 
(latest supported by RedHat).

As part of this I noticed the Package Analysis tool so I started experimenting 
with it.
All that happens is that I get an exceptio message in the JBoss AS server.log 
file and an apparent memory leak.
The exception relates to a SerializationException thrown by 
VerificationService.analysePackage and contains many (many) Verifier Errors 
saying

quote
[ERR 107] Line 2:0 mismatched input 'when' expecting one of the following 
tokens: '[package, import, global, declare, function, rule, query]'.
/quote

Using jvisualvm, I can see that the memory usage takes a step jump each time I 
use the analysis tool and eventually (actually after only 2 usages) I get 
OutOfMemoryErrors.

The package compiles just fine.

Is there a known problem with the analysis tool?

Chris Selwyn
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor Authentication

2013-03-05 Thread Jervis Liu
rjr201 wrote:
 Hi,

 I'm still struggling to get authentication to work with Guvnor 5.5 on JBoss
 7. Can anyone confirm that the fix described here is still necessary/correct
 with Guvnor 5.5? 

 http://drools.46999.n3.nabble.com/How-configure-Guvnor-5-4-JAAS-with-jboss-7-0-2-td4020424.html
   
You probably ran into the same problem reported by 
https://issues.jboss.org/browse/GUVNOR-1986, which is caused by a Seam 
security bug. If this is the case, you can either wait for 5.6.0 release 
or you can work around the problem based on the article described above.

Cheers,
Jervis
 It feels strange that I have to change the source code for something so
 common as authentication. Any insight anyone can give me on doing this would
 be really helpful. 

 Thanks in advance,
 Rich. 



 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Guvnor-Authentication-tp4022675.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor Authentication

2013-03-05 Thread rjr201
Thanks for your reply. I'll take a look at that. Do you know when 5.6 will be
released?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-Authentication-tp4022675p4022691.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] Is it possible to compare the hashmap values in Drools Spreadsheet

2013-03-05 Thread kareemsk7
Hi..

i have a code which should compare the two column values through hashmap in
drools spreadsheet.
when i parsed the code from spreadsheet to .drl file, there is '/' is
appending to code.
Please have a look on the attached document and help me in solving the
issue. Drools_SpreadsheetIssue.docx
http://drools.46999.n3.nabble.com/file/n4022692/Drools_SpreadsheetIssue.docx  



--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-it-possible-to-compare-the-hashmap-values-in-Drools-Spreadsheet-tp4022692.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] Is it possible to compare the hashmap values in Drools Spreadsheet

2013-03-05 Thread Michael Anstis
Hello,

This is by design, see
https://github.com/droolsjbpm/drools/blob/master/drools-decisiontables/src/main/java/org/drools/decisiontable/parser/ActionType.java#L179

If a cell value contains some textquotation marksome textquotation
markmore text the quotation marks are assume to be part of the value and
escaped.

This can be overridden using EscapeQuotes false flag in the RuleSet
properties section.
On 5 March 2013 13:58, kareemsk7 shaikabdul.kar...@igate.com wrote:

 Hi..

 i have a code which should compare the two column values through hashmap in
 drools spreadsheet.
 when i parsed the code from spreadsheet to .drl file, there is '/' is
 appending to code.
 Please have a look on the attached document and help me in solving the
 issue. Drools_SpreadsheetIssue.docx
 
 http://drools.46999.n3.nabble.com/file/n4022692/Drools_SpreadsheetIssue.docx
 



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Is-it-possible-to-compare-the-hashmap-values-in-Drools-Spreadsheet-tp4022692.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Is it possible to compare the hashmap values in Drools Spreadsheet

2013-03-05 Thread kareemsk7
http://drools.46999.n3.nabble.com/file/n4022694/sheet.png The code which
you shared is to create xl-sheet using java code. but in my scenario, rules
will be set directly in Xl-sheet.
I will share my xl-sheet for your reference.
i am comparing values dynamically from hashmap through bean.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-it-possible-to-compare-the-hashmap-values-in-Drools-Spreadsheet-tp4022692p4022694.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] Is it possible to compare the hashmap values in Drools Spreadsheet

2013-03-05 Thread kareemsk7
http://drools.46999.n3.nabble.com/file/n4022695/java_code2.png 
http://drools.46999.n3.nabble.com/file/n4022695/java_code.png 

i am sharing my java code as well for your reference.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Is-it-possible-to-compare-the-hashmap-values-in-Drools-Spreadsheet-tp4022692p4022695.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] Change in eval mvel syntax from 5.1 to 5.3

2013-03-05 Thread Chris Selwyn
I have been using 5.1 for some time and am looking to upgrade.

I have found that, where in 5.1, I used to be able to write

$jd: JobDetails(
  eval ( $t = [MTSURVEY, MTINSTALL, MTEXCHANGE, MTMAINT];
  !($t contains getJobType(businessArea, templateJobId) )) )

However, in 5.3.1 this now produces a syntax error as follows:-

[CheckJobType] [ERR 101] Line 9:9 no viable alternative at input '$t' in rule 
CheckJobType
[CheckJobType] Parser returned a null Package

 I have found that I have to now code the condition as follows:-

$jd: JobDetails(
  eval (!([MTSURVEY, MTINSTALL, MTEXCHANGE, MTMAINT] contains 
getJobType(businessArea, templateJobId) )) )

It is a relatively minor thing but I am curious as to why I should have to 
recode this.
What has changed to cause me to do this? What other incompatibilities exist?

Chris
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Is it possible to compare the hashmap values in Drools Spreadsheet

2013-03-05 Thread Michael Anstis
The code I linked is within them drools-decisiontable module; it was for
your information.

Add EscapeQuotes false to the RuleSet properties and your XLS should
translate to the DRL you expect.

On 5 March 2013 14:43, kareemsk7 shaikabdul.kar...@igate.com wrote:

 http://drools.46999.n3.nabble.com/file/n4022695/java_code2.png
 http://drools.46999.n3.nabble.com/file/n4022695/java_code.png

 i am sharing my java code as well for your reference.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Is-it-possible-to-compare-the-hashmap-values-in-Drools-Spreadsheet-tp4022692p4022695.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Decision tables - maintenance workflow - best practices

2013-03-05 Thread jalex
I am planning to load the decision tables into a KnowledgeBase and cache it
in Infinispan so that it can be accessed by all app instances. Since the
rules dont change frequently, the loader script can be run whenever there is
an update. This makes the XLS files stay along with the loader and not
scattered across instances, but i would like to know from the community how
it's handled - without Guvnor. Please refer original question in thread.

-ja




--
View this message in context: 
http://drools.46999.n3.nabble.com/Decision-tables-maintenance-workflow-best-practices-tp4021191p4022698.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] drools linkage errors

2013-03-05 Thread mani koduri
Hi,

Initially I am using jboss-drool 5.0.1 version in our project and I updated
to jboss-drools 5.4.0 version in our project but I am getting linkage
errors as mentioned below.

*java.lang.LinkageError: loader (instance of
org/drools/rule/JavaDialectRuntimeData$PackageClassLoader): attempted*
*duplicate class definition for name:
com/ds/rule/vm/fvm/ruleengine/Rule_Product_has_minimum_number_of_valid_quotes_5263d589f8864649bbb734bada7a54ed
*
*at java.lang.ClassLoader.defineClass1(Native Method)
[rt.jar:1.6.0_30]*
*at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
[rt.jar:1.6.0_30]*
*at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[rt.jar:1.6.0_30]*
*at
org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:615)
[drools-core-5.4.0.Final.jar:5.4.0.Final]*
*at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:254)
[knowledge-api-5.4.0.Final.jar:5.4.0.Final]*
*at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:237)
[knowledge-api-5.4.0.Final.jar:5.4.0.Final]*
*at
org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88)
[knowledge-api-5.4.0.Final.jar:5.4.0.Final]*
*at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
[rt.jar:1.6.0_30]*
*at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[rt.jar:1.6.0_30]*
*at
a.b.c.Rule_person___unique___name_656ee3db19d34e689d95e2d6b2be67b6Eval0InvokerGenerated.evaluate(Unknown
Source)*
*at
a.b.c.Rule_person___unique___name_656ee3db19d34e689d95e2d6b2be67b6Eval0Invoker.evaluate(Unknown
Source)*
*at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:114)
[drools-core-5.4.0.Final.jar:5.4.0.Final]*

And each time I ran the project I am getting same error but on different
rules.

Could you please help me out how to solve this issue?

with regards,
k.chaitanya.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Concurrent stateful knowledge session

2013-03-05 Thread ismaximum
Hi
I have one question and one problem.
The question is, is multiple instances of stateful session, thread safe?

The problem is, we have a bunch of test cases. Each test class extends from
an abstract class in which drools session will be created. Previously we had
stateless session so therefore for each test method we had to create a new
session and call execute() method. 
Now because of the huge number of test methods this runs for about 20
minutes. So we decided to change the the session to stateful to make it
faster.

After this change, many of test cases have ended with assertion failure
which doesn't make sense. I don't know what's wrong here, before each test
method, we retract any previous fact and we insert new objects. 

Since jnuit runs tests in multiple threads I thought maybe there is an issue
with concurrency. 

Can anyone please help me on this.
Thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Concurrent-stateful-knowledge-session-tp4022702.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] Fw: Fw: constraints lacking and in excess

2013-03-05 Thread Michiel Vermandel
Anyone having an idea?


Thanks

Michiel
 
-
http://www.codessentials.com - Your essential software, for
 free!
Follow us at http://twitter.com/#!/Codessentials

- Forwarded Message -
From: Michiel Vermandel mverm...@yahoo.com
To: Rules lists.jboss.org rules-users@lists.jboss.org 
Sent: Thursday, February 28, 2013 8:54 PM
Subject: [rules-users] constraints lacking and in excess
 

Hi,

I have written a custom move implementation.
At first I got the exception:

java.lang.IllegalStateException: The moveClass (class 
my.planner.solver.MoveGroupToPeriod)'s move (PROJECT Period GroupChange:{T= 
Inspect 55871.I#0 [4-4] Bart DE BIE IV XI} = (P5)  [i1]) probably has a 
corrupted undoMove (my.planner.solver.util.TaskChangeListMove@35e8df37). Or 
maybe there are corrupted score rules.
...


I found out that I did not undo all changes that I made in the move.
After fixing this, I now often get Score corruption as below.
I checked and all changes are preceded with director.beforeVariableChanged(...) 
and followed by director.afterVariableChanged(...);

What could cause this corruption?


java.lang.IllegalStateException: Score corruption: the workingScore 
(-286hard/-30601soft) is not the uncorruptedScore (-286hard/-30401soft):
  The workingMemory has 3 ConstraintOccurrence(s) in excess:
    preferedRegion/NEGATIVE_SOFT:[{T= Inspect 115519.I#0 [8-8] Dirk JANSSENS 
IV V}, Johan LAMOTE, 99, V]=99
    taskSpreading/NEGATIVE_HARD:[(P7) , 77]=100
    preferedRegion/NEGATIVE_SOFT:[{T= Inspect 115519.I#1 [8-8] Erik VERHOEVEN 
TL V}, Dirk JANSSENS, 99, V]=99
  The workingMemory has 6 ConstraintOccurrence(s) lacking:
    preferedRegion/NEGATIVE_SOFT:[{T= Inspect 115519.I#0 [8-8] Dirk JANSSENS 
IV V}, Dirk JANSSENS, 99, V]=99
    taskSpreading/NEGATIVE_HARD:[(P7) , 75]=36
    preferedRegion/NEGATIVE_SOFT:[{T= Inspect 115519.I#1
 [8-8]
 Erik VERHOEVEN TL V}, Erik VERHOEVEN, 99, V]=99
    preferedRegion/NEGATIVE_SOFT:[{T= Inspect 4747.I#0 [10-10] Johan LAMOTE IV 
V}, Johan LAMOTE, 99, V]=99
    taskSpreading/NEGATIVE_HARD:[(P8) , 74]=16
    preferedRegion/NEGATIVE_SOFT:[{T= Inspect 4747.I#1 [10-10] Dirk JANSSENS 
TL V}, Dirk JANSSENS, 99, V]=99
  Check the score rules who created those ConstraintOccurrences. Verify that 
each ConstraintOccurrence's causes and weight is correct.
    at 
org.drools.planner.core.score.director.AbstractScoreDirector.assertWorkingScore(AbstractScoreDirector.java:249)
    at 
org.drools.planner.core.solver.scope.DefaultSolverScope.assertWorkingScore(DefaultSolverScope.java:96)
    at 
org.drools.planner.core.phase.AbstractSolverPhaseScope.assertWorkingScore(AbstractSolverPhaseScope.java:124)
    at
 
org.drools.planner.core.localsearch.DefaultLocalSearchSolverPhase.solve(DefaultLocalSearchSolverPhase.java:86)
    at 
org.drools.planner.core.solver.DefaultSolver.runSolverPhases(DefaultSolver.java:190)
    at 
org.drools.planner.core.solver.DefaultSolver.solve(DefaultSolver.java:155)
    at my.planner.app.InspectionSchedule.solve(InspectionSchedule.java:275)
    at 
my.planner.testcore.AbstractPlanningTestClass.solve(AbstractPlanningTestClass.java:444)
    at 
my.planner.testcore.AbstractPlanningTestClass.solve(AbstractPlanningTestClass.java:469)
    at my.planner.RealBaoTest.datasetBAO20122013(RealBaoTest.java:226)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at 
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at
 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
   

[rules-users] Invitation to use Google Talk

2013-03-05 Thread Google Talk
---

You've been invited by Charles Moulliard to use Google Talk.

If you already have a Google account, login to Gmail and accept this chat
invitation:
http://mail.google.com/mail/b-24e447c28b-cbf64d740a-0ZFldaRm8r596E2OwjQjXBBFTbw

To sign up for a Google account and get started with Google Talk, you can
visit:
http://mail.google.com/mail/a-24e447c28b-cbf64d740a-0ZFldaRm8r596E2OwjQjXBBFTbw?pc=en-rf---a

Learn more at:
http://www.google.com/intl/en/landing/accounts/


Thanks,
The Google Team
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Concurrent stateful knowledge session

2013-03-05 Thread Wolfgang Laun
See below.

On 06/03/2013, ismaximum mnr...@gmail.com wrote:
 Hi
 I have one question and one problem.
 The question is, is multiple instances of stateful session, thread safe?

 The problem is, we have a bunch of test cases. Each test class extends from
 an abstract class in which drools session will be created. Previously we
 had
 stateless session so therefore for each test method we had to create a new
 session and call execute() method.
 Now because of the huge number of test methods this runs for about 20
 minutes. So we decided to change the the session to stateful to make it
 faster.

 After this change, many of test cases have ended with assertion failure
 which doesn't make sense. I don't know what's wrong here, before each test
 method, we retract any previous fact and we insert new objects.

I'm inclined to say that, given your course of actions, this is very
likely to happen unless you have taken great pains to make your rules
safe from mutual interactions between transactions - transactions in
the sense of one related set of inserts/firings/.../retracts. (I can
elaborate on this if necessary.)


 Since jnuit runs tests in multiple threads I thought maybe there is an
 issue
 with concurrency.

Yes, but not in the classic sense :-)
-W


 Can anyone please help me on this.
 Thanks



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Concurrent-stateful-knowledge-session-tp4022702.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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users