[rules-users] Test Failure: RioRemoteTest

2009-11-17 Thread mardo
I am executing mvn -Ddocumentation -Declipse clean install on the current sources in SVN, with the following reoccurring result: Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.324 sec Results : Tests in error: testFireAllRules(org.drools.vsm.ServiceManagerRioRemoteTest)

Re: [rules-users] Drools flow web console (5.1.M1) deployment in JBoss

2009-11-17 Thread ramram8
thnx Mauricio 4 ur help bug fixed after using the latest hibernate-validator-4.0.2.GA.jar and hibernate3.jar -- View this message in context: http://old.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-JBoss-tp25952512p26386137.html Sent from the drools - user mailing list archive

Re: [rules-users] dynamic temporal parameters

2009-11-17 Thread Mark Proctor
Ming Fang wrote: Is it possible to make temporal parameters dynamic by using bound variables? Example: EventA( this after[ $later ] $eventB) Currently, no. Mark --ming ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Test Failure: RioRemoteTest

2009-11-17 Thread Mauricio Salatino
I will review that error today 2009/11/17 mardo ma...@abicola.de I am executing mvn -Ddocumentation -Declipse clean install on the current sources in SVN, with the following reoccurring result: Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.324 sec Results : Tests in

Re: [rules-users] dynamic temporal parameters

2009-11-17 Thread Nestor Tarin Burriel
Try using DSL: [when]temporal EventB=EventB() [when]temporal EventA=EventA() [when]-after {period:[0-9]+} EventB=this after[{period}d] $eventB 2009/11/17 Mark Proctor mproc...@codehaus.org Ming Fang wrote: Is it possible to make temporal parameters dynamic by using bound variables?

[rules-users] Working in the GWT console

2009-11-17 Thread ramram8
Hi I am having the following problem: I am able to start the web cosole successfully and see all the process List that I want to execute. My scenario is the following: User Task1 - User Task2 - Send Mail What I did is: 1- upload the jar file into Guvnor 2- upload the rf file into Guvnor 3- Build

[rules-users] [Urgent] Error in ontext assist in DSLR Editor

2009-11-17 Thread hamza bakkali
Hi All, I have been using drools 4 for couple of months now and I am starting to get the hang of it. We recently decided to move to Dools 5 with Eclipse 3.4.2 (Ganymede). We unfortunately hit a major 'show stopper' (for us). In the DSLR editor: Context Assist + space + enter removes/replaces the

Re: [rules-users] Working in the GWT console

2009-11-17 Thread Kris Verlaenen
Does your test case work if you run it from Eclipse directly (for example using a knowledge agent to load them from guvnor or simply loading from file system) and using the Eclipse task client (to eliminate the possibility that there is something wrong with the process)? Might be useful if you

Re: [rules-users] Drools Flow :Persistence Problem : Restore StatefulKnowledgeSession from database

2009-11-17 Thread Kris Verlaenen
Preferably you should cache the session itself as well (so you don't have to recreate it all the time) and reuse that across you application. Or you could have multiple independent sessions as well. If you store the key of the session somewhere, you can easily restore this session (or sessions)

Re: [rules-users] Working in the GWT console

2009-11-17 Thread ramram8
Hi Kris I am new to Drools. I didn't perform a test case from eclipse by using a knowledge agent to load them from guvnor. Well I have a question after I build the application on Guvnor should I do something like copythe .pkg to a specific location or just restart the server and Launch the GWT

Re: [rules-users] Working in the GWT console

2009-11-17 Thread ramram8
Kris I also found the following issue if the USER TASK 1 and USER TASK 2 are assigned to the same user I can see both tasks and execute them but if for example Task 1 is assigned to admin and Task 2 is assigned to admin1 after logging out and logging in as admin1 I cant see that the tasks that

[rules-users] Stateful session and non-existence of Facts

2009-11-17 Thread Leonardo Gomes
Hi Guys, I have the following situation while running a stateful session with Drools 4.0.7: - I want to test that a fact with a given state doesn't exist; - It works fine - At a certain point I have to retract all facts and reinsert them at the stateful session - some of them actually changed

Re: [rules-users] Drools solver info = provide DSL instead of DRL to Drools Solver

2009-11-17 Thread dmzpippo-drools
Hi Geoffrey, I have modified the LocalSearchSolverConfig class to accept the scoreDsl tag. To use this tag need gonfigure the XML solverConfig file adding the path of Drl file and Dsl file associated in two line consecutive in the configuration file. This code is not the best but is a start

Re: [rules-users] Drools solver info = provide DSL instead of DRL to Drools Solver

2009-11-17 Thread dmzpippo-drools
Hi Geoffrey, I have modified the LocalSearchSolverConfig class to accept the scoreDsl tag. To use this tag need gonfigure the XML solverConfig file adding the path of Drl file and Dsl file associated in two line consecutive in the configuration file. This code is not the best but is a start

Re: [rules-users] Drools Flow :Persistence Problem : Restore StatefulKnowledgeSession from database

2009-11-17 Thread Vijay K Pandey
Is session (StatefulKnowledgeSession) thread safe? -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Kris Verlaenen Sent: Tuesday, November 17, 2009 4:48 AM To: Rules Users List; Vijay K Pandey Cc:

Re: [rules-users] Drools Flow :Persistence Problem : Restore StatefulKnowledgeSession from database

2009-11-17 Thread Kris Verlaenen
Quoting Vijay K Pandey vpan...@mdes.ms.gov: Is session (StatefulKnowledgeSession) thread safe? Yes Kris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Stateful session and non-existence of Facts

2009-11-17 Thread Edson Tirelli
Leonardo, First, I believer there is a misconception in your reasoning: creating sessions is supposed to be much much cheaper than retracting all facts. Creating a rulebase is heavier, because it requires compilation, but creating a session is supposed to be very light by design. So, first

Re: [rules-users] dynamic temporal parameters

2009-11-17 Thread Ming Fang
Mark, Are there plans to support this in the future? Should I submit a Jira? --Ming On Nov 17, 2009, at 4:32 AM, Mark Proctor mproc...@codehaus.org wrote: Ming Fang wrote: Is it possible to make temporal parameters dynamic by using bound variables? Example: EventA( this after[ $later

Re: [rules-users] dynamic temporal parameters

2009-11-17 Thread Mark Proctor
Ming Fang wrote: Mark, Are there plans to support this in the future? Should I submit a Jira? There are plans, it's just a matter of time. As of yet, there are no community contributions in this cep area, so it's slow progress :( Mark --Ming On Nov 17, 2009, at 4:32 AM, Mark Proctor

[rules-users] No Guided DSL Rule Editor

2009-11-17 Thread Qian, Tony
I'm currently evaluating Drools as Rules Engine for our Company. I'm kind of struggling with using Guvnor to create rule. I created two fact models, one by uploading jar file and another using declarative model. When I tried to create rules, I don't see DSL Business Rule (Guided Editor) in

Re: [rules-users] Error trying to build Drools 5.0 from source

2009-11-17 Thread mardo
*(This should be also valid for 5.1, I just want to keep the relation to previous postings on this issue)* In case anyone encounters similar obstacles: I have used newer versions of ANT and MAVEN for building Drools 5.1 from trunk. Using the exact versions as shown below did not yield the cyclic

[rules-users] Getting java.util.ConcurrentModificationException when updating a fact from Decision Tables.

2009-11-17 Thread Gurvinder Narula1
I have a decision table with one CONDITION column. My fact could match multiple rules (rows) of the decision table. With each match, the 'ACTION' cause the fact itself to change. I'm using 'modify' as follows to change my fact: modify ($line) { addItem( new Item(DISCOUNT,25%)); }

[rules-users] Need Syntax help for a string match

2009-11-17 Thread Lindy hagan
Need to do some tasks if customers age is in 18,21,33,28,40,41. Can't use contains as age is a string value.Could any one help me out. Below rule does not work. rule Age Factor when m : Customer( age matches 18,21,33,28,40,41) then System.out.println(Customer falls

Re: [rules-users] Need Syntax help for a string match

2009-11-17 Thread Mauricio Salatino
Or just find how to write a regex to match all that numbers: Using matches and http://java.sun.com/docs/books/tutorial/essential/regex/ On Tue, Nov 17, 2009 at 6:50 PM, Mauricio Salatino sala...@gmail.comwrote: I think that you can do something like: m : Customer( age == 18 || ==21 || ==33 ||

Re: [rules-users] Need Syntax help for a string match

2009-11-17 Thread Lindy hagan
Thanks for the quick reply.Will look into regex. 2009/11/17 Mauricio Salatino sala...@gmail.com Or just find how to write a regex to match all that numbers: Using matches and http://java.sun.com/docs/books/tutorial/essential/regex/ On Tue, Nov 17, 2009 at 6:50 PM, Mauricio Salatino

Re: [rules-users] Need Syntax help for a string match

2009-11-17 Thread Jared Davis
Here are two ways to write the regular expression. m : Customer( age matches (18|21|33|28|40|41)) m : Customer( age matches (18|2[18]|33|4[01])) Did you try m : Customer( age in (18,21,33,28,40,41)) I don't know which solution is faster. I think that would be an interesting

Re: [rules-users] Need Syntax help for a string match

2009-11-17 Thread Mauricio Salatino
@Greg Using in is better that the multiple || == 18 ? It has some relation with indexing? With multiple || == the RETE network will generate one alpha node for each value right? But for in I don't imagine how it works, I also realize that it's not included in the official docs. On Tue, Nov 17,

Re: [rules-users] Need Syntax help for a string match

2009-11-17 Thread Greg Barton
The rete view for the following two rules have identical structure: (One alpha node in each) rule Test when t : Thing( foo == BAR || == BAS ); then System.out.println( meh ); end rule Test when t : Thing( foo in(BAR,BAS) );

[rules-users] Drools Flow 5.1.0.M1 - org.drools.audit.event.LogEvent

2009-11-17 Thread Vijay K Pandey
I was going through the org.drools.audit.event.LogEvent class and have a question on the following values and what kind of events they relate to - are they related to Human Task or something else public static final int BEFORE_TASK_INSTANCE_CREATED= 28; public static final int

[rules-users] Using DateFormat and getting today's date in drools5.0

2009-11-17 Thread ABRA2
I need to compare date from java bean to system date for a rule. I referred to previous posts, drools expert documentation and tried to come up with a rule which is not yet working. Please help me for the same. 1. Which package should i import to use DateFactory? It is not in

Re: [rules-users] Drools Flow :Persistence Problem : Restore StatefulKnowledgeSession from database

2009-11-17 Thread Pardeep . Ruhil
Hi Kris, Thanks for you valuable input and Vijay of course clearing some of my doubts by asking question on this. Much of my doubt are clear except one. When we are reloading the StatefulKnowledgeSession from the database using the below line StatefulKnowledgeSession loadSession=