Re: [rules-users] Nested classes in the fact model in Guvnor

2010-10-20 Thread Toni Rikkola
Hi, This is a bug. I reported it: https://jira.jboss.org/browse/GUVNOR-679 Toni Rikkola On Oct 20, 2010, at 4:40 PM, Chris Selwyn wrote: > > If I have nested classes in my Java model, I find that the Guvnor is > giving me the option to import classes using a "$" as the separator > between th

[rules-users] Deadlock with multiple Entry Points

2010-10-20 Thread Norman C
Drools can deadlock when facts are inserted/retracted/modified in multiple entry points in the same session.  Since each such action will acquire the lock associated with the entry point, it's possible for the order of calls to cause deadlock when the locks for two entry points are acquired by

Re: [rules-users] Simple DSL example

2010-10-20 Thread morge
Thanks. I am using the latest up-to-date Drools 5.1. I have changed DSL to DSLR. Whatever I include or not the expander in the DRL file, I have the following error message: [2,0]: [ERR 101] Line 2:0 no viable alternative at input '[' [8,0]: [ERR 103] Line 8:0 rule 'rule_key' failed predicate

Re: [rules-users] Drools examples don't run

2010-10-20 Thread 赵侃侃
Thanks Bruno, I have now fixed the NoClassDefFoundError, any ideas about the NullPointer one? Best Regards, Kevin Zhao 2010/10/20 Bruno Freudensprung > > Hello, > > I think you have to add the xstream jar to your classpath. > Here is the Maven dependency : > > > com.thoughtworks.xst

Re: [rules-users] Is drools ksession thread-safe?

2010-10-20 Thread Ji Oh Yoo
Thanks for the replies. What should be the ProcessInstance prc variable in your code? Also, did you have to create synchronized insert (and modify, update) method in your wrapper class? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Is-drools-ksession-threa

Re: [rules-users] Use Knowledge Agent

2010-10-20 Thread developer researcher
Hello Michael and Subhas, thanks for your answers. Apparently the problem is due to permission. I am using the next configuration: I attached the class that use for my test, in this code not included code for authenticate. In that sense I have new questions: 1º What is the minimal configurati

Re: [rules-users] Simple DSL example

2010-10-20 Thread esteban.alive...@gmail.com
Which version of drools are you using? I think the "expander" is no longer needed. When adding Sample.drl to kbuilder, use ResourceType.DSLR instead of ResourceType.DRL. Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteb

Re: [rules-users] Use Knowledge Agent

2010-10-20 Thread Subhas
Give some more details like code and jars in build path. I use KnowledgeBase and working fine for me. Thanks, Subhas On Wed, Oct 20, 2010 at 12:54 PM, java.developer.researcher < java.developer.researc...@gmail.com> wrote: > > Hello, > > I am trying of integrate Drools Guvnor with an java web ap

Re: [rules-users] Use Knowledge Agent

2010-10-20 Thread Michael Anstis
"This" being http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-war-5-1-td1474465.html ;-) On 20 October 2010 21:03, Michael Anstis wrote: > Guvnor 5.1 authenticates requests; hence the HTTP401. > > This

Re: [rules-users] Use Knowledge Agent

2010-10-20 Thread Michael Anstis
Guvnor 5.1 authenticates requests; hence the HTTP401. Thisis most applicable to your requirement however there are other ways to pass BASIC authentication in a Http request. On 20 October

[rules-users] Alternative for using a regular expression

2010-10-20 Thread Dean Whisnant
Hello, In designing our rules system to allow users and analysts to create and edit rules (through Guvnor) we have a requirement that some of the fields be able to be evaluated for specific characters in specific positions of the string. See the following examples: Example 1: The string named

[rules-users] Use Knowledge Agent

2010-10-20 Thread java.developer.researcher
Hello, I am trying of integrate Drools Guvnor with an java web application. I am using KnowledgeAgent, but occurs the next exception when execute the code: java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8383/drools-guvnor/org.dr

[rules-users] Simple DSL example

2010-10-20 Thread morge
Hi everybody, I try to run a simple DSL example. My DRL is as follows: package org.mydrools.examples #must be in the following order. import org.mydrools.examples.Person import org.mydrools.examples.Cheese #refer to test_expander.dsl expander test_expander.dsl rule "my rule" when

Re: [rules-users] How can i delete any object after executing the rules from the memory.

2010-10-20 Thread Michael Anstis
If you use a StatelessKnowledgeSession you won't need to remove the old facts. If however you want to use a StatefulKnowledgeSession for other reasons the insert method returns a FactHandle that can be later used to retrieve the fact: ksession.retract(factHandle). Please refer to the documenation

Re: [rules-users] How do I persist at every node transition?

2010-10-20 Thread kirakane
Is there anyway to do persistence in the middle of a synchronous process perhaps through a custom WorkItem? My tasks in each node are webservice calls that are not idempotent and can't be wrapped in a transaction across multiple nodes of the ruleflow. So, I really do want persistence at every no

Re: [rules-users] [rules-dev] Rules Fest October 2010 and BRF 2010

2010-10-20 Thread Mark Proctor
Just a reminder that I and others of the core team are on conference at the moment, so apologies for lack of responsiveness. Mark On 12/10/2010 01:08, Mark Proctor wrote: >Rules Fest is in full swing, http://rulesfest.org/html/home.html. > Great attendance with around 100 people and great f

Re: [rules-users] Using Drools and Spring in an OSGi environment

2010-10-20 Thread Mark Proctor
On 20/10/2010 11:26, O.S. wrote: > Has nobody tried to get Drools-Spring working with OSGi? Otherwise it would > be enough for me if i could configure the Kbases, KSessions and so on with > the Drools-Spring-Syntax (drools-spring-1.0.0.xsd). Is there something like > a DroolsConfigurationHelper ?

Re: [rules-users] Strange Performance Problem in Rules

2010-10-20 Thread ravibhatt
i tried with ProcessResult( $id1 : id,... ) ProcessResult( id > $id1,...) by having an id in my ProcessResult. It still does not work. :-( it takes forever to insert records. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Strange-Performance-Proble

Re: [rules-users] How do I persist at every node transition?

2010-10-20 Thread Kris Verlaenen
The engine will store the state of the process instance at any "safe state". This means we won't store the state while we're still in the middle of processing it (as that means the state is still changing), but only once we're done processing that one trigger. So if you have a synchronous process

Re: [rules-users] GWT Console and WSHT Rendering

2010-10-20 Thread Kris Verlaenen
Sam, Yes, exactly like you said, if you use the FreeMarker templates, you have access to the "task" variable and the "content", which is whatever you want it to be. If your content is a Map, we also allow access to all the values in the Map by using the key as a variable name (just to simplify yo

[rules-users] How can i delete any object after executing the rules from the memory.

2010-10-20 Thread nkumar
Hi.. I want to delete the objects which i inserted earlier to execute the rules upon. Why i want this is i have two lists containing 20 objects of two different classes. for every combination i am assigning some values to the class variables in the rule file. So at any single time i want to exec

Re: [rules-users] Drools examples don't run

2010-10-20 Thread Bruno Freudensprung
Hello, I think you have to add the xstream jar to your classpath. Here is the Maven dependency : com.thoughtworks.xstream xstream 1.3.1 Best regards, Bruno. ??? a écrit : Hello, I checked out the latest source from svn repository. It compiled OK and imported the ex

Re: [rules-users] parallel folw execution

2010-10-20 Thread Kris Verlaenen
The process engine really doesn't add that much overhead to the actual work that needs to be performed by the process itself. If you're invoking a service that takes 2-3 seconds, you need to make sure you invoke the service asynchronously, so the engine can continue executing other process instanc

Re: [rules-users] GWT Console and WSHT Rendering

2010-10-20 Thread Kris Verlaenen
Quoting Michael Anstis : > What project can I find this under http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-process/drools-gwt-form/ > On 16 October 2010 22:57, Kris Verlaenen > wrote: > > > Forms are separately created using a template-based approach and > looked > > up from

[rules-users] Expert versus Expert

2010-10-20 Thread Charles SOUILLARD
Hi all, i'm a newbie on Drools and want to understand the general architecture of the solution. Is it true that Drools Guvnor helps managing rules definition but it is not a rule server ? Meaning we can define, update, archive, test... rules but not execute them in Guvnor? My understanding is th

[rules-users] Some rule packages have disappeared in Guvnor

2010-10-20 Thread John Peterson
Hey all, We restarted our JBoss Server (version 4.2.3.GA) on Linux and after the restart completed, we noticed that some of our packages (2) have disappeared. I've gone through the server log and there is an error (PathNotFoundException) for one of the missing packages, which I've pasted below.

[rules-users] Nested classes in the fact model in Guvnor

2010-10-20 Thread Chris Selwyn
If I have nested classes in my Java model, I find that the Guvnor is giving me the option to import classes using a "$" as the separator between the containing class name and the nested classname. However, validation of rules always fails saying that the class name with the "$" in it cannot be

Re: [rules-users] Stateless K-Session but no Sequential Mode

2010-10-20 Thread Greg Barton
The stateless session is just a convenience wrapper around the stateful session. GreG On Oct 20, 2010, at 6:52, "Swindells, Thomas" wrote: That is enough reason in itself - why go to the bother of having to do inserts, fire all rules and dispose separately when stateless sessions do that a

[rules-users] gwt-console-server resteasy 1.0.2 and BPMN serviceTasks

2010-10-20 Thread sam . squire
Hello there, I am having a problem with the gwt-console-server and resteasy JBoss library. My serviceTask uses resteasy to communicate with a different server. The conflict is that gwt-console-server uses resteasy 1.0.2 and my application uses 2.0.1. How do I isolate the libraries used by gwt-

Re: [rules-users] Stateless K-Session but no Sequential Mode

2010-10-20 Thread Swindells, Thomas
That is enough reason in itself - why go to the bother of having to do inserts, fire all rules and dispose separately when stateless sessions do that all for you - as the javadoc says: "StatelessKnowledgeSession provides a convenience API, wrapping StatefulKnowledgeSession. It avoids the need to

Re: [rules-users] Stateless K-Session but no Sequential Mode

2010-10-20 Thread Wolfgang Laun
If I understand this correctly, there isn't much point in having a non-sequential-mode stateless session. If I want a one-shot execution, I can call inserts, fireAllRules and dispose() just as well in a stateful session. Possibly this is due to past development. Thanks! -W On 20 October 2010

Re: [rules-users] Does Knowledgebase partitioning work at all?

2010-10-20 Thread Tim 4076
I'm doing some pattern analysis on large quantities of records, where I have several hundred thousand facts and a few rules doing things like string matching and aggregation. I have a stateless session, which I populate with my rules and then execute against a big list of all the facts. The multit

Re: [rules-users] Does Knowledgebase partitioning work at all?

2010-10-20 Thread Michael Anstis
I'm probably not the one to answer your question; but could you please explain a little more how you are using drools? I believe partitioning is related to drools-fusion's capabilities rather than a generic multi-threading facility. I also believe it needs to be used in conjunction with entry-poi

[rules-users] Does Knowledgebase partitioning work at all?

2010-10-20 Thread Tim 4076
I am attempting to use the multi thread knowledgebase partitioning feature on drools 5.1, but am not having much luck. Using a stateless session with MultithreadEvaluationOption.YES and MaxThreadsOption.get(2) always gives a NullPointer exception: java.lang.NullPointerException at org.dro

Re: [rules-users] Using Drools and Spring in an OSGi environment

2010-10-20 Thread O.S.
Has nobody tried to get Drools-Spring working with OSGi? Otherwise it would be enough for me if i could configure the Kbases, KSessions and so on with the Drools-Spring-Syntax (drools-spring-1.0.0.xsd). Is there something like a DroolsConfigurationHelper ? O.S. wrote: > > Hello, > I'm actually

[rules-users] Drools examples don't run

2010-10-20 Thread 赵侃侃
Hello, I checked out the latest source from svn repository. It compiled OK and imported the example projects to my eclipse workspace but the examples run with error. The two example projects are namely drools-examples-drl & drools-examples-fusion. org.drools.examples.pacman.Main gives the errors:

Re: [rules-users] Unexpected performance difference on different hardware

2010-10-20 Thread Tim 4076
I think I've solved this - the linux server was running J6u21, whereas the desktop is on J6u10. It seems there have been some subtle changes in the GC implementation between these which were causing the GC to thrash when nearing the heap limit. Running with u10 on the server brings the time down to

Re: [rules-users] Is drools ksession thread-safe?

2010-10-20 Thread jschmied
I think no. I use a session in a multithread environment I had to put a wrapper with synchronized methods around it to prevent random locks. FireUntilHalt consumes 100% CPU. I have a ruleflow and found: while (ksession.getPrcState(prc) == ProcessInstance.STATE_ACTIVE) { Threads.sleep(10)

Re: [rules-users] Get rid of redundant conditions in combined rules.

2010-10-20 Thread Dominik Hüttner
Thanks for this advice, that’s exactly what I’m looking for, and if I want to use it in the guvnor, is it planned to realize this also there or can it be done unde Other meta data -> type? I use guvnor version 5.0. Regards, Dominik Von: Vincent Legendre [mailto:vincent.legen...@eurod

Re: [rules-users] Stateless K-Session but no Sequential Mode

2010-10-20 Thread Swindells, Thomas
>From what I understand the answer to 1, and 3 is no - once the list of >activations is generated it isn't regenerated. This greatly increases performance if you are dealing with a problem where the input facts and consequences are partitioned and isolated - for instance you could have a load o

Re: [rules-users] Stateless K-Session but no Sequential Mode

2010-10-20 Thread Harshit Bapna
Few more questions related to sequential mode in stateless session: 1. Can we insert objects in the RHS of the rule and these objects can be used in the LHS of another rule ? 2. Can anyone provide use case for sequential mode stateless session ? 3. Can I have a high salience rule which inserts fac

Re: [rules-users] Is drools ksession thread-safe?

2010-10-20 Thread Swindells, Thomas
I believe that if you use Commands to insert facts then it is thread safe - but I may be wrong! Thomas > -Original Message- > From: rules-users-boun...@lists.jboss.org [mailto:rules-users- > boun...@lists.jboss.org] On Behalf Of Ji Oh Yoo > Sent: 20 October 2010 06:21 > To: rules-users@l

Re: [rules-users] Stateless K-Session but no Sequential Mode

2010-10-20 Thread Swindells, Thomas
I've not used it but from what I understand: Sequential mode: 1. Insert facts 2. Create activations. 3. Fire all activations. 4. Done. None Sequential (Standard) mode: 1. Insert facts. 2. Create initial activations. 3. Pop and fire highest salience activation. 4. Update activations (if update, ret