Re: [rules-users] Using Drools for Batch Data Validation

2010-04-21 Thread Wolfgang Laun
I have just completed an intra-company report, part of which researches the usability of rule based systems for data validation, and the bottom line is: yes. There are some variations in rule authoring that might be useful or not, such as using a domain specific language, or rule templates. The t

[rules-users] split constraint same as LHS of rule

2010-04-21 Thread Kathy Sward
We have recently started using flow along with rules. We noticed that for our split constraints, those constraints often matched the LHS of our rules. We took the approach of removing the constraint from the rule, under the premise that we would only need to have the constraint one place, and no

[rules-users] ListDataType in Ruleflow file?

2010-04-21 Thread David Cracauer
Greetings, Is there anyway to define the value of a variable defined as a ListDataType in a ruleflow file? I have a custom WorkItem that can be configured with a list of possible values that will complete it, and I'd like to define it in the ruleflow file. However, any time I define it with anyt

[rules-users] Multithreading work items

2010-04-21 Thread Pedro Maria Buitrago Mantilla
In general, I meet that for resolve the topic of multithreading it's required to implement another thread over a work item. How does the asynchronic task can modified a variable of Knowledgebase? Can you give me an example? Pedro Buitrago ___ rules-us

[rules-users] Using Drools for Batch Data Validation

2010-04-21 Thread Richard, Rene
Hello, I am new to Drools (1 day of reading and watching video podcasts etc...). We have a requirement for our project where we'll have an input table HSQLDB table and some validation rules we need to apply on the data in the table. Some tables will have > 45 000 records or more. Would this ki

Re: [rules-users] Drools Expert 5 OSGi

2010-04-21 Thread jflamy
Maxime (previous poster on the chain) works with me. We're still cutting our teeth as well. We're hoping to find the same thing and do a Hello World project. On Wed, Apr 21, 2010 at 2:31 PM, AervTerrh [via Drools - Java Rules Engine] > wrote: > I keep having problems with OSGi Drools aswell. Ca

Re: [rules-users] Problems with result mapping for custom workitems

2010-04-21 Thread Mauricio Salatino
Sorry, I didn't see that you are using it. Can you show us how your WorkModel class looks like? On Wed, Apr 21, 2010 at 2:06 PM, Mauricio Salatino wrote: > the completeWorkItem method receives a Map with the results. You need to > populate that map, in order the mapping works. > > > > On Wed, Apr

Re: [rules-users] Problems with result mapping for custom workitems

2010-04-21 Thread Mauricio Salatino
the completeWorkItem method receives a Map with the results. You need to populate that map, in order the mapping works. On Wed, Apr 21, 2010 at 1:22 PM, PAYET, Manuel wrote: > Hello everyone, I have a problem using result mapping in custom workitems > when I try to set an attribute of an object

Re: [rules-users] Drools Expert 5 OSGi

2010-04-21 Thread Wouter Van Isterdael
I keep having problems with OSGi Drools aswell. Can anyone send me a project example with imports etc.? That would be most helpful. King regards Aerv 2010/4/21 jflamy > > The jars in the "bin" zip are themselves bundles. You need those as well. > -- > View this message in context: > http://n3

Re: [rules-users] ClassCastException during inserting knowledge package

2010-04-21 Thread Edson Tirelli
This is related to the problem in your other e-mail and it is fixed in trunk. Edson 2010/4/21 Piotr Jedrychowski > Hello. > > I have a problem with such scenario: > > 1) add one knowledge package (sensor200) with two rules: > > package sensor200 > rule "Sensor-200-ON" > when > (and f0: FM

Re: [rules-users] NullPointerException during removing knowledge packages

2010-04-21 Thread Edson Tirelli
I fixed a couple problems with rule removal in trunk. Can you check if trunk works for you? Edson 2010/4/21 Piotr Jedrychowski > Hello. > > I have a problem with removing knowledge packages. During running this > source code > Collection knowledgePackages = > knowledgeBase.getKnowledgePac

[rules-users] Problems with result mapping for custom workitems

2010-04-21 Thread PAYET, Manuel
Hello everyone, I have a problem using result mapping in custom workitems when I try to set an attribute of an object as one of the result: I make the following mapping in Result Mapping of my workitem: Parameter Variable message workmodel.message and all I have is Could not find va

Re: [rules-users] Drools Expert 5 OSGi

2010-04-21 Thread jflamy
The jars in the "bin" zip are themselves bundles. You need those as well. -- View this message in context: http://n3.nabble.com/Drools-Expert-5-OSGi-tp681546p740613.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users m

Re: [rules-users] Parameterize temporary restrictions in Drools Fussion

2010-04-21 Thread Edson Tirelli
No, at the moment you can only use constant parameters for temporal restrictions. Edson 2010/4/21 Ana Villa > > Mostrar forma romanizada > It is possible to parameterize the temporary restrictions fussion drools? > For example use expressions like "this after [*, $object.getTimer ()] > $

[rules-users] ClassCastException during inserting knowledge package

2010-04-21 Thread Piotr Jedrychowski
Hello. I have a problem with such scenario: 1) add one knowledge package (sensor200) with two rules: package sensor200 rule "Sensor-200-ON" when (and f0: FMSensorFact(id==201) f1: FMSensorFact(id==202) ) (not FMFact(id==200)) then FMFact factToInsert = new FMFact(200); insert(factToInsert); end

[rules-users] NullPointerException during removing knowledge packages

2010-04-21 Thread Piotr Jedrychowski
Hello. I have a problem with removing knowledge packages. During running this source code Collection knowledgePackages = knowledgeBase.getKnowledgePackages(); if (knowledgePackages != null) { List packageNames = new ArrayList(); for (KnowledgePackage singlePackage : knowledgePackages)

[rules-users] Running Sub-process only once in rule flow

2010-04-21 Thread Adeyinka Timi
Hi, Is it possible to set some kind of RUN-ONLY-ONCE restriction on a sub-process in a rule flow, to avoid running this process multiple times in the case of a cycle in the rule-flow? -Ade ___ rules-users mailing list rules-users@lists.jbos

[rules-users] Apply a selector by default in Guvnor

2010-04-21 Thread Jean-Denis Maroie
Hello I use two status in Drools Guvnor : "draft" and "validated". When I export my rules, I only want to export validated rules. Is it a way to activate by default a selector which exports only validated rules ? Sincerely Jean-Denis -- View this message in context: http://n3.nabble.com/App

[rules-users] Parameterize temporary restrictions in Drools Fussion

2010-04-21 Thread Ana Villa
Mostrar forma romanizada It is possible to parameterize the temporary restrictions fussion drools? For example use expressions like "this after [*, $object.getTimer ()] $event" In my sample project does not work ... Thanks ___ rules-users mailing list r

Re: [rules-users] Drools Planner - Constraint Occurrences in working memory

2010-04-21 Thread awuttke
Hi Geoffrey, I couldn't find the example code you mentioned but based on your description I added the following lines after the planner was called: ruleEnginePlanner.solve(); CustomSolution bestSolution = (CustomSolution) ruleEnginePlanner.getBestSolution(); rule

Re: [rules-users] Add some default status

2010-04-21 Thread fmetral
Thanks a lot Esteban. I've found this morning the same class that you mentionned: - JackrabbitRepositoryConfigurator - and StateItem where the state is declared I'm going to modify the source code (these two classes exactly) and I will include them in my Drools guvnor war. Thanks for your help

Re: [rules-users] Add some default status

2010-04-21 Thread Esteban Aliverti
I was digging the source code a little and I found that the repo is initialized with default data by JackrabbitRepositoryConfigurator.setupRulesRepository() inside drools-repository module. Unfortunately, there is no way to hook custom behavior there. You can always modify the source code, but you

Re: [rules-users] Integration issue : Guvnor with Openldap

2010-04-21 Thread Jaroslaw Kijanowski
Try this one: ldaps://localhost:16636 ssl cn=DirManager,dc=kijanowski,dc=eu admin123 ou=People,o=guvnor,dc=kijanowski,dc=eu (uid={0}) ou=Roles,o=guvnor,dc=kijanowski,dc=eu (member={1}) cn -1 ONELEVEL_SCOPE When you have followed the tutorial, then you have setup ssl, so please keep in mind

Re: [rules-users] Add some default status

2010-04-21 Thread fmetral
Thanks Esteban for your answer. I agree with you, this solution is a little bit awful. :) When the repository is installed for the first time, the status Draft is available. So in my mind, this status may be contained in the WAR and not just in the repository. What do you think about this? I rea