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

2010-10-19 Thread Ji Oh Yoo
Hi, I want to fire a session with fireUntilHalt() and make other threads insert facts in that session. Is drools rule engine thread-safe in that sense? If not, what else can I do? Thanks. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Is-drools-ksession-t

Re: [rules-users] install drools5.2.0.SNAPSHOT solved

2010-10-19 Thread Geoff Hay
Hi Needed to run: ant download.drools.bin and ant install.drools.runtime this isn't mentioned in the manual install Geoff From: rules-users-boun...@lists.jboss.org [rules-users-boun...@lists.jboss.org] On Behalf Of Geoff Hay [geoffrey@otago.ac.nz] Sent: Wedne

[rules-users] install drools5.2.0.SNAPSHOT

2010-10-19 Thread Geoff Hay
Hi Just joined up here and haven't found an answer to this - sorry if it's something already sorted... hopefully it's trivial.. Downloaded the drools5.2.0.SNAPSHOT-install and followed instructions in: drools-5.2.0.SNAPSHOT-install\install\install.html (manual install) When I try to do: ant star

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

2010-10-19 Thread Wolfgang Laun
Indeed I have, and I've read it down to the last paragraph: "Sequential mode can only be used with a Stateless Session and is off by default. To turn it on, either call..." This tells me about a StatelessKnowledgeSession WITH sequential mode. So, what if I create a StatelessKnowledgeSession from a

Re: [rules-users] installing Drools using maven

2010-10-19 Thread Tina Vießmann
Thank you, it's working just fine. :) Hi, You can try as follows , it does work for me. I used drools.version - 5.0.1 org.drools drools-core ${drools.version} org.drools drools-compiler ${drools.version} org.drools drools-decisiontables ${drools.version} Thanks, Subhas 2010/10/19 T

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

2010-10-19 Thread Michael Anstis
No doubt I'm missing the point but have you seen "3.3.7.1. Sequential Mode" in Expert's documentation? On 19 October 2010 21:27, Wolfgang Laun wrote: > As I understand the Expert documentation, Sequential Mode has to be > turned on, even with a Stateless Knowledge Session to achieve all the > sh

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

2010-10-19 Thread Wolfgang Laun
As I understand the Expert documentation, Sequential Mode has to be turned on, even with a Stateless Knowledge Session to achieve all the shortcuts and speed-ups. What the documentation does not tell me (or I haven't seen it) is the difference of a Stateless Knowledge Session with and without Sequ

Re: [rules-users] installing Drools using maven

2010-10-19 Thread Subhas
Hi, You can try as follows , it does work for me. I used drools.version - 5.0.1 org.drools drools-core ${drools.version} org.drools drools-compiler ${drools.version} org.drools

Re: [rules-users] installing Drools using maven

2010-10-19 Thread Tina Vießmann
Hi again, maybe I should specify what exactly I want to do. I'm developing a project in a team. We're using the eclipse IDE. I would like to configure maven the way that it builds the eclipse project, downloads the drools library and adds the drools library to the projects build path. I kno

[rules-users] Decision Table evaluating empty cell condition

2010-10-19 Thread Uday Kodukula
Hello, I am currently working with Drools Decision tables, and have created a decision table to determine availability of offers. I have Offer Entities which contain a collection of "groups" that the offer can belong to. That collection contains strings of ids that identify those groups.

[rules-users] installing Drools using maven

2010-10-19 Thread Tina Vießmann
Hi, I would like to install drools for one of my projects using maven. (I've already ask the maven mailinglist. They said I shall ask here, because it's Drools related.) I've set up the repository and the drools reference in my projects POM file. Jboss Drools Nexus Repository https

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

2010-10-19 Thread Wolfgang Laun
I think that a single helper class class Marker { String property; Object target; } would be sufficient: // 1st consequence insert( new Tag( "London", customer ) ); // 2nd condition Tag( property == "London", $target : target ) Customer( this == $target, job == "teache

Re: [rules-users] Pattern aggregation

2010-10-19 Thread Wolfgang Laun
You aren't using the conditions "within one hour" here, but other than this, it should work well, even with the customer identity included. -W 2010/10/19 Tim 4076 : > What do you guys think of this: my facts are all the same type, so I didn't > have anything like a consumer object to break things

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

2010-10-19 Thread Wolfgang Laun
On 19 October 2010 15:02, ravibhatt wrote: > > Thomas, > > For testing purposes, i am inserting only 5 rules, 2 ProcessResult Objects > and 2 ProcessData Objects. > With two ProcessResult objects, this $processResult1:ProcessResult( inputSource == "table1",... ) $processResult2:ProcessRes

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

2010-10-19 Thread Vincent Legendre
There is something in 5.x which allow a rule to inherit from another. Inheritance is on parent rule conditions. May be you could write something like this: rule "london_guys" when     customer:Customer(town=="London") then   

Re: [rules-users] How can i create a new object in consequence part

2010-10-19 Thread nkumar
its working...i added one global variable in the session and i was trying to access other which was not in the memory. thanks -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-can-i-create-a-new-object-in-consequence-part-tp1728632p1732946.html Sent from

Re: [rules-users] How can i create a new object in consequence part

2010-10-19 Thread Michael Anstis
The consequence section of a rule (i.e. right hand side) is simply a block of code (in whichever dialect you're using). Can you elaborate on what is not working? Your code looks perfectly good Java (in isolation of anything else). Are you setting your globals to instances of their applicable clas

Re: [rules-users] How can i create a new object in consequence part

2010-10-19 Thread nkumar
I just want to create an object and set the status messages in that object. in every rule fired by the rule engine. dont want rules to see those objects. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-can-i-create-a-new-object-in-consequence-part-tp1728

Re: [rules-users] How can i create a new object in consequence part

2010-10-19 Thread Michael Anstis
Why does it not work? Are you getting an error? What is your expectation? On 19 October 2010 15:43, nkumar wrote: > > AvailabilityRuleState s = new AvailabilityRuleState(); >s.setValue("Not Available"); >s.setReason("Type Specific"); >

[rules-users] Test Scenario for a Ruleflow in Guvnor

2010-10-19 Thread Keith Lynch
Hi Folks I've been playing with Guvnor and have been defining Test Scenarios. Mostly the scenarios meet our requirements for simple rule packages. However we use small flows which only use rule tasks. I've seen that the ruleflow-group support works however I'm wondering if a test scenario can be

Re: [rules-users] How can i create a new object in consequence part

2010-10-19 Thread nkumar
AvailabilityRuleState s = new AvailabilityRuleState(); s.setValue("Not Available"); s.setReason("Type Specific"); s.setReference("Availability rule FrontAxle and FrontSuspension Type"); resultState.add

Re: [rules-users] Pattern aggregation

2010-10-19 Thread Tim 4076
What do you guys think of this: my facts are all the same type, so I didn't have anything like a consumer object to break things down with. But what I did was: rule "group 1" when $a : Trans( $groupValue : prodCat, $date : date ) not Trans( this != $a, prodCat == $groupValue, date < $date )

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

2010-10-19 Thread Dominik Hüttner
Hi Leonardo, the performance problem I thought of meant removing and inserting the facts again and again, if I would remove the facts, that don’t fit the first rule and execute the second rule only on the remaining facts. The solution you offered, does, what I intend, but the problem is, that I

Re: [rules-users] Changing to JANINO not working?

2010-10-19 Thread Mentor11
Thank you very much.^^ I didn't think the Engine would go back to the Eclipse Compiler if JANINO is not found. So I always thought he was only looking for the Eclipse Compiler. I added JANINO to the Classpath in it worked like a Charm. -- View this message in context: http://drools-java-rules-en

[rules-users] Unexpected performance difference on different hardware

2010-10-19 Thread Tim 4076
My dev box runs Windows XP with an oldish intel core 2. It processes my rules in 13s, with a peak memory usage of about 600MB. When I run the exact same code on my 64bit linux server with a quad 2.40Ghz Xeon, it takes 22s and uses a peak of 1.5Gb memory. What on earth is going on here? I would ex

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

2010-10-19 Thread ravibhatt
Thomas, For testing purposes, i am inserting only 5 rules, 2 ProcessResult Objects and 2 ProcessData Objects. When i use a rule that does not use hardcoded "table1", it inserts first 1 ProcessData objects fairly quickly, for next 1 it is taking forever. Like in 30 mins its able to i

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

2010-10-19 Thread Swindells, Thomas
These don't do the same thing do they? In option 1: You have a list of ProcessResults which have been filtered to match "table1" (so presumably a relatively small list). You have a list of ProcessResults which have been filtered to match "table2" (so presumably a relatively small list). You then

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

2010-10-19 Thread ravibhatt
Hi Wolfgang Laun-2, i continue to have problems with performance of this rule. I made few more observations: if i write the rule like this (notice hardcoded tbale name in input source comparision), it runs fast. $project:Project(status==Status.DATA_FETCHED) $rule:Rule(

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

2010-10-19 Thread sam . squire
I have worked it out using the sourcecode. To retrieve variables in forms from your process, you can use two Freemarker variables: - Task is for human task information fields. Take a look at the Task class and the TaskData class to see what you can access from your template.# This way you can

Re: [rules-users] Flows, Subflows and fault.

2010-10-19 Thread Swindells, Thomas
From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of esteban.alive...@gmail.com Sent: 16 October 2010 17:17 To: Rules Users List Subject: Re: [rules-users] Flows, Subflows and fault. Hi Thomas, Here you have some answers (in blue) to your complain

[rules-users] mavn drools 5.1 plug-in

2010-10-19 Thread Kumar, Ravendra
Hi all, Could any of you please suggest best maven plug-in to build/compile .drl files for drools 5? Thanks Ravendra Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail

Re: [rules-users] List of valid values

2010-10-19 Thread Chris Selwyn
Hi Vincent, Thanks for the response. I think that I was wondering about whether a Guvnor enumeration was usable at runtime (maybe by a DRL function) as well as being used for driving a Guvnor dropdown list in the guided editor. Do you know whether it is pos

Re: [rules-users] Changing to JANINO not working?

2010-10-19 Thread marton.bokor
Hi, I'm also using Janino for our production server which works with your second approach. Do you have the janino jar in you lib path? I've found that it is not included in my drools sdk so had to download separately from somewhere. -- View this message in context: http://drools-java-rules-eng

Re: [rules-users] fact in mvel action

2010-10-19 Thread marton.bokor
I've found that you can use insert and possibly update in action nodes with mvel. It seems so far that the properties of inserted objects are then accesible in rule nodes (for example a split node). However I was suprised to find out that it did not work if the asserted object is in a member varia

Re: [rules-users] Check if all activations has been fired for a rule

2010-10-19 Thread Swindells, Thomas
fireAllRules(); Checks for all activations but that is probably more correct as another rule firing can reactivate your rule anyway. > -Original Message- > From: rules-users-boun...@lists.jboss.org [mailto:rules-users- > boun...@lists.jboss.org] On Behalf Of ravibhatt > Sent: 18 October

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

2010-10-19 Thread ravibhatt
it turns out that inputSource memberOf $rule.inputTableList is the problem. My Rule contains a list of input tables, and if i use inputSource == "tablename"; this works much much faster. is there any other way to check if one objects value is in other object? And because of the order of object

Re: [rules-users] List of valid values

2010-10-19 Thread Vincent Legendre
I think you had listed all possibilities of Guvnor about that. To sum up, if you want something dynamic, typically linked to a DB, you should use you personnal class If the enums are more 'static', why enumeration (which is a guvnor ressource like others, ie a resou

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

2010-10-19 Thread ravibhatt
Thanks for your prompt reply. Even if i remove those extra conditions it still takes a lot of time given the fact that i have only 2 facts. my getValue() maintains a hashmap and it returns values from the map. So it should be fast. I tried removing equalsIgnoreCase and its still the same.

Re: [rules-users] List of valid values

2010-10-19 Thread Chris Selwyn
Any takers on my question below... Or have I answered my own question? Chris On 17/10/2010 16:51, Chris Selwyn wrote: > I am developing a set of rules around validating messages in a B2B > messaging environment and I would like to have my rules builders have > control of the valid set of values

Re: [rules-users] Drools API

2010-10-19 Thread shyam_prakash
Hi, This code snippet works when the complete url package is given. For instance http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/PKG/PKG_1 But I am looking for something like this (url to be passed) http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/ wh

Re: [rules-users] Check if all activations has been fired for a rule

2010-10-19 Thread Michael Anstis
Yes, this has been answered at least twice on this forum in recent weeks. Please search for additional information if required (I provided a code example about 3 days ago). 2010/10/19 esteban.alive...@gmail.com > You can use and AgendaEventListener to keep track of your activations, > firing an

Re: [rules-users] How can i create a new object in consequence part

2010-10-19 Thread Michael Anstis
Don't forget when adding new objects; if you want them to be visible to the rules you'll need to call "insert(XXX)" or "insertLogical(XXX)" 2010/10/19 Minh Huon > You have something similar to what you want. If *resultState *is a > global variable, there is nothing stopping you from writing an