Re: [rules-users] rules-users Digest, Vol 42, Issue 139

2010-06-04 Thread Jaroslaw Kijanowski
My best guess is that it must be something very trivial, like a typo in a file name or the selector name in the properties file or GUI... have you tried the latest and greatest 5.1 M2 release? There is built-in support for selectors based on category and status. Moreover once you provid your

Re: [rules-users] Working on Selectors - getting 'The Selector named onlyNonDraftRules is not available'

2010-05-30 Thread Jaroslaw Kijanowski
Hi, the file should be called selectors.properties and not selector.properties - I've just fixed that in the tutorial. Thanks, Jarek John Peterson wrote: I’m working off of Jarosław Kijanowski’s blog post from 7/8/2009 on using Selectors:

Re: [rules-users] how to move a repository from derby database to Oracle Database

2010-05-04 Thread Jaroslaw Kijanowski
The first FileSystem path param should be the same as in the default repository.xml file. This is param name=path value=${rep.home}/repository/ and not param name=path value=${rep.home}/ vadlam wrote: for some reason, the xml info within the OraclePersistenceManager tag came out as blank in

Re: [rules-users] how to move a repository from derby database to Oracle Database

2010-05-01 Thread Jaroslaw Kijanowski
Oh, ok, so you've provided a homeDirectory property in components.xml Then, as you already mentioned, create this directory and put the repository.xml file there. To sum it up: 1. export your repo, stop the app server 2. delete everything inside the directory specified as homeDirectory in

Re: [rules-users] how to move a repository from derby database to Oracle Database

2010-05-01 Thread Jaroslaw Kijanowski
Looks like you're missing a couple of things in he repository.xml file. In all FileSystem sections, leave the default 'path' parameter, taken from the original repository.xml Jackrabbit will replace rep.home with /config/drools - no need to carry for this. Your SearchIndex at the bottom is

Re: [rules-users] how to move a repository from derby database to Oracle Database

2010-04-30 Thread Jaroslaw Kijanowski
This doesn't tell me much. Maybe there's more in the log? - Truncated. see log file for complete stacktrace This might help as well. http://www.ibm.com/developerworks/forums/thread.jspa?threadID=103468 One more thought - you have provided the Oracle driver to your app server, right? vadlam

Re: [rules-users] how to move a repository from derby database to Oracle Database

2010-04-29 Thread Jaroslaw Kijanowski
Before you switch to Oracle, go to the Administration tab and export your repository. Then configure your repository.xml file to point to Oracle, remove the repository directory (most probably in jboss-as/bin) and start your server. Then go to the admin tab and import your repo (first you need

Re: [rules-users] how to move a repository from derby database to Oracle Database

2010-04-29 Thread Jaroslaw Kijanowski
What you have provided is just the driver class, but yeah, this is the right one. Moreover I would also consider to change the FileSystem to use org.apache.jackrabbit.core.fs.db.OracleFileSystem instead of the local file system. But this is strictly Jackrabbit related stuff and you would need

Re: [rules-users] how to move a repository from derby database to Oracle Database

2010-04-29 Thread Jaroslaw Kijanowski
After the repo export, you need to delete the whole repository directory which includes: repository version workspaces and you have to clear the schema in Oracle you want to use - Guvnor will prepare the DB during deployment when accessing a fresh DB. When you login, you should be asked to

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

2010-04-21 Thread Jaroslaw Kijanowski
Try this one: application-policy name=guvnor authentication login-module code=org.jboss.security.auth.spi.LdapExtLoginModule flag=required module-option name=java.naming.provider.urlldaps://localhost:16636/module-option module-option name=java.naming.security.protocolssl/module-option

Re: [rules-users] Trying to get Eclipse Java code to call Guvnor

2010-03-26 Thread Jaroslaw Kijanowski
Hey John, have you created a Drools Project in Eclipse? Then put the file in src/main/java It will be copied over to the bin directory automatically and then picked up when running your app. Cheers, Jarek John Peterson wrote: I’m using the example code from the Red Hat Magazine -

Re: [rules-users] How to Use BigDecimal in Drools 5.0

2010-02-05 Thread Jaroslaw Kijanowski
Hi, you might want to give this book a try: Drools JBoss Rules 5.0 Developer's Guide You'll find a *LOT* of examples using BigDecimal. Cheers, Jarek Nikhil S. Kulkarni wrote: Hi, I have a doubt that how to use java.math.BigDecimal within facts of Drools. Waiting for reply.

Re: [rules-users] Error deserialize KnowledgeDefinitionsPackage

2010-02-04 Thread Jaroslaw Kijanowski
Hi, what's the version of Guvnor in your 'existing project'? Can you make sure it is the same as your agent's version? Cheers, Jarek Jian Feng Ng wrote: I am facing this error of knowledgeagent trying to deserialize knowledgedefinitionspackage. Actually I am not too sure what caused this

Re: [rules-users] KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage

2010-01-18 Thread Jaroslaw Kijanowski
Hi, HonorGod wrote: I am getting the following error while accessing decision tables that were uploaded in Guvnor - java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage at

Re: [rules-users] unable to resolve Type Declaration class

2009-12-03 Thread Jaroslaw Kijanowski
Looks like it is related to this open jira: https://jira.jboss.org/jira/browse/GUVNOR-379 Cheers, Jarek richarda wrote: Yeah, its in the classpath.. and to be doubly sure just before the code I do a Signature s=new Signature(); and that works.. so jvm can find the Signature object. I

Re: [rules-users] Uploading DSL/DSLR to guvnor

2009-11-03 Thread Jaroslaw Kijanowski
Hi Daniel, you can create a new DSLR rule when you choose 'DSL Business Rule' in the 'New Rule' dialog. Cheers, Jarek dbrownell83 wrote: Hi all, is there a way to upload a DSL and DSLR in Guvnor? I see you can enter a new DSL, so copy-pasting is an option... but then what about

Re: [rules-users] Implementaion of Rule Flow in Guvnor

2009-11-03 Thread Jaroslaw Kijanowski
Hi Ambika, your rules in the first rule flow group MasterHud set a new value on a fact's field. Then you expect that your rules in the second rule flow group fire. The rule engine has no idea that some facts' fields changed until you let the engine know via update(); Open your MasterHud

Re: [rules-users] Once the engine gets the package from guvnor, how to cache it and make it independent of guvnor.

2009-11-03 Thread Jaroslaw Kijanowski
Hi, Wesley Akio Imamura wrote: Hi, I'm using this drools 5.0 scenario: agent using changeset file pointing to a LATEST package guvnor URL. The guvnor docs says how to start the agent resource scanning to make the engine change aware: -

Re: [rules-users] Oracle Database to store rules in Guvnor

2009-10-18 Thread Jaroslaw Kijanowski
Hi, this might be a driver version issue. BTW, what Oracle version are you using? Cheers, Jarek Ambika Goel wrote: Hi All, I am using Oracle database to store rules repository via apache jackrabbit in Guvnor. I have made relevant changes in repository.xml. When I use

Re: [rules-users] Problem in accessing change-set.xml for decision table entry

2009-10-04 Thread Jaroslaw Kijanowski
Hi, your change-set xml file looks good - can you please make sure you have a sheet called 'Tables' in your abc.xls spreadsheet? Cheers, Jarek Nikhil S. Kulkarni wrote: Hi, I am using Drools 5 I am facing following issue :- While trying to access change-set.xml with

Re: [rules-users] Argument truncation in decision table

2009-10-03 Thread Jaroslaw Kijanowski
Hi, can you attach your spreadsheet? I had no issue to use a function that takes 8 args (same type and order as in your example) in a decision table. Could be some typo. Cheers, Jarek Robert Morse wrote: Hello, I have a Seam (2.2.0.GA) application running under JBoss 5.1.0.GA. This

Re: [rules-users] How to use enumeration in web based decision table using Guvnor

2009-09-05 Thread Jaroslaw Kijanowski
Hi, Johan Kumps wrote: Hi all, I want to use a value list voor e certain fact field in a web based decision table in Guvnor. I created an enumeration in the same package as follows : 'RegistriesInvocationContext.endUser' : ['TRUE=YES', 'FALSE=NO', '=Not to be checked'] The

Re: [rules-users] Guvnor and Drools 4.0.7

2009-08-20 Thread Jaroslaw Kijanowski
Leonardo Gomes wrote: Hi All - Is Guvnor meant to work only with Drools 5? Yes. Thanks, Leo. ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] how to use xml file instead of java object ?

2009-08-20 Thread Jaroslaw Kijanowski
Hi, have a look at the dsl: http://anonsvn.jboss.org/repos/labs/labs/jbossesb/tags/JBESB_4_6/product/services/jbrules/src/main/resources/XPathLanguage.dsl This rule expects an object of type org.jboss.soa.esb.message.Message which contains the XML in its body. Also note that a lot of stuff

Re: [rules-users] org.drools.RuntimeDroolsException when inserting into Knowledge Session

2009-08-01 Thread Jaroslaw Kijanowski
Hi, before you insert any facts, make sure you set all globals used in your rules. Cheers, Jarek Abarna Ramachandran wrote: I am getting the following error when trying to insert my object into ksession. I have attached my rules and java object. Please help me in debugging why this is

Re: [rules-users] MySQL and Derby issues with Guvnor

2009-07-31 Thread Jaroslaw Kijanowski
Hi, when this doesn't help then post your repository.xml file. Cheers, Jarek Bhamidi, Krishna wrote: Delete the repository directory on the server domainroot. Delete all tables in the database created by guvnor , and try to bring up guvnor again, it shouls come up.

Re: [rules-users] Import Existing DRL in Guvnor never finishes

2009-07-29 Thread Jaroslaw Kijanowski
Hi, what version? 5.0.1.GA? Have you changed Jackrabbit's backend or are you using the default settings? Cheers, Jarek Steve Ronderos wrote: Hello All, I'm experiencing an issue importing an existing DRL into Guvnor, we made a sample DRL file containing 1000 very simple rules that

Re: [rules-users] error in writing test scenarios

2009-07-29 Thread Jaroslaw Kijanowski
Hi, please provide some more details. Maybe a screen shot of your test scenario would do. It might be also useful to see your rules. Cheers, Jarek VÅM§Ï ® wrote: Hi , While writing the test scenarios,after pressing run scenario button i m getting the below error in the server and

Re: [rules-users] Import Existing DRL in Guvnor never finishes

2009-07-29 Thread Jaroslaw Kijanowski
? Thanks, Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 01:33:31 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 01:39 AM Sent

Re: [rules-users] Relation between Guvnor and Expert in Drools5.0

2009-07-29 Thread Jaroslaw Kijanowski
Hi, Sumant Kumar wrote: Thanks Vijay. I think I have few more questions. 1) Does Guvnor include the runtime or Rule engine it self ? I could create rule and execute it in Guvnor so does this mean it has Expert included in it. Yes (you can have a look at the WEB-INF/lib dir to see

Re: [rules-users] Import Existing DRL in Guvnor never finishes

2009-07-29 Thread Jaroslaw Kijanowski
Jackrabbit's built in Derby DB. Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 07/29/2009 10:53:41 AM: [image removed] Re: [rules-users] Import Existing DRL in Guvnor never finishes Jaroslaw Kijanowski to: Rules Users List 07/29/2009 10:57 AM

Re: [rules-users] Relation between Guvnor and Expert in Drools5.0

2009-07-29 Thread Jaroslaw Kijanowski
/ I am not sure why Jboss is not wraping them as component and call it Expert. thanks Sumant *From:* Jaroslaw Kijanowski kijanow...@gmail.com *To:* Rules Users List rules-users@lists.jboss.org *Sent:* Wednesday

Re: [rules-users] Webguided decision table and nested objects

2009-07-23 Thread Jaroslaw Kijanowski
Hi, just write this in the 'Field' box: address.street - sure, it's not perfect (the GUI doesn't let you go deeper and provide the proper fields to choose), but it's possible. Cheers, Jarek Wishing Carebear wrote: Hello: I have a facts objects with nested objects : example:

Re: [rules-users] Drools Govnor DB configuration

2009-07-17 Thread Jaroslaw Kijanowski
pardeep.ru...@lntinfotech.com wrote: Hi, Thanks Jarek for your reply. Still I have one doubt in my mind, how can I see the data for a newly registered user (i.e name permission ) created through Drools Guvnor administrator functionality. Where should I find the new user data(i.e. name

Re: [rules-users] Getting hold of the Evaluator Registry

2009-07-16 Thread Jaroslaw Kijanowski
On Linux, when I created my own accumulate functions, I had to put this file in my home directory to have it picked up by Eclipse. Cheers, Jarek Edson Tirelli wrote: root of your project classpath, not root of your project. []s Edson 2009/7/15 Asif Iqbal

Re: [rules-users] OFBiz entity engine compatibility with Jackrabbit

2009-07-16 Thread Jaroslaw Kijanowski
Hi pardeep.ru...@lntinfotech.com wrote: Hi, I am using apache OFBiz which uses Entity engine as a persistence layer. To know more about Entity engine refer this link http://ofbiz.apache.org/docs/entity.html Drools Guvnor uses Jackrabbit as a persistence layaer. So my question is there a

Re: [rules-users] Drools Govnor DB configuration

2009-07-16 Thread Jaroslaw Kijanowski
Hi, pardeep.ru...@lntinfotech.com wrote: Hi, I am using Apache OFBiz and had successfully integrated Drools Guvnor war file with OFBiz. By default Drools Guvnor supports Embedded derby, but in OFBiz i am using MYSql , so i changed the default embedded derby to MySql using repository.xml

Re: [rules-users] Drools Guvnor integration with MySql

2009-07-15 Thread Jaroslaw Kijanowski
http://blog.athico.com/2008/08/tuning-guvnor.html http://jackrabbit.apache.org/jackrabbit-configuration.html Cheers, Jarek pardeep.ru...@lntinfotech.com wrote: Hi, I want to integrate the Drools Govnor with extenal Database (MySql). Can anyone help me how can i do the settings to connect to

Re: [rules-users] role based authentication in tomcat

2009-07-15 Thread Jaroslaw Kijanowski
Hi, so far you have just created a name for your jaas configuration, called brms. If you would use JBoss AS, you would need to create a jaas config in server/default/conf/login-config.xml. Details are here: http://blog.athico.com/2008/08/tuning-guvnor.html Keep in mind that you use JAAS only

Re: [rules-users] Guvnor deployment pattern

2009-07-15 Thread Jaroslaw Kijanowski
Hi, rviswanathan wrote: Hi, I would like to understand the deployment pattern supported by Guvnor. Everytime when I add the rules or model objects on Guvnor those files are checked in on SVN repository. 1.) Where exactly those files are stored? Out of the box it's stored in Jackrabbit's

Re: [rules-users] agenda-group and decision tables

2009-07-15 Thread Jaroslaw Kijanowski
I think it's because AGENDA-GROUP isn't considered at all, filed JBRULES-2208. k...@chryslerfinancial.com wrote: I thought so but when I upload the .xls to Guvnor and view the source I do not see it. I have it like this in my spreadsheet: Any ideas would be appreciated. Thanks

Re: [rules-users] Guvnor web based decision table

2009-07-15 Thread Jaroslaw Kijanowski
Johan Kumps wrote: Hi, Johan Kumps wrote: Hi all, I've a number of Excel based decision tables running in my applications. Now I want to use Guvner to manage these rules. Only importing the xsl files is not enough. So I have to manually convert the

Re: [rules-users] variable binding without condition in Decision table

2009-07-14 Thread Jaroslaw Kijanowski
It should work without creating a dummy constraint, try this: CONDITION leave this row blank $serviceContract:CreditServiceContract() Cheers, Jarek Hehl, Thomas wrote: Nope, that’s how it works. I wrote it up as a defect and it got closed because no one seemed to think it was an issue. So,

Re: [rules-users] Guvnor web based decision table

2009-07-14 Thread Jaroslaw Kijanowski
Hi, Johan Kumps wrote: Hi all, I've a number of Excel based decision tables running in my applications. Now I want to use Guvner to manage these rules. Only importing the xsl files is not enough. So I have to manually convert the xsl's to a web based decision table. Why do you need to

Re: [rules-users] Creating custom selectors using the category property for deploying certain rules in guvnor

2009-07-06 Thread Jaroslaw Kijanowski
On Wed, Jul 1, 2009 at 1:03 PM, Jaroslaw Kijanowski kijanow...@gmail.com mailto:kijanow...@gmail.com wrote: Hi, you may vote for this one ;) https://jira.jboss.org/jira/browse/GUVNOR-109 So far I have successfully used 'stateDescription' and 'creator', for sample rules look

Re: [rules-users] Re: a technical error occurred. Please contact a system administrator.

2009-07-05 Thread Jaroslaw Kijanowski
or the model jar? VÅM§Ï ® wrote: /Hi Jaroslaw Kijanowski /, Thanks for your reply.here is some my jar content. com/aklero/db/entity/InstClient.class com/aklero/db/entity/RiderType.class com/aklero/db/entity/AbstractDmsDocumentDataMapping.class com/aklero/dms/DMSIntegrator.class com/aklero/dms

Re: [rules-users] new to drools: can't manage to find the documentation page about eclipse plugin installation

2009-07-02 Thread Jaroslaw Kijanowski
Hi, http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-introduction/html_single/index.html#d0e1371 3.1.3.3. Installing Drools plug-in from zip file and 3.1.3.4. Drools Runtimes You could also use the update site: Drools 5.0 Eclipse Workbench for 3.4

[rules-users] streams and equality assertion behavior

2009-07-01 Thread Jaroslaw Kijanowski
Hi, I've configured my knowledge base to use the EQUALITY assertion behaviour. When I insert two equal facts into the session, only one gets processed (objects and their fact handles are equal). However when I insert two equal facts via streams, my rule fires twice (objects are equal, but

Re: [rules-users] a technical error occurred. Please contact a system administrator.

2009-07-01 Thread Jaroslaw Kijanowski
Can you please post the content of your jar file ($ jar tf myFile.jar)? Can you also check the server's console and post any error messages? VÅM§Ï ® wrote: Hi, After uploading the jar file,and clicking on *save and validate configuration* returning an error called technical error occurred.In

Re: [rules-users] streams and equality assertion behavior

2009-07-01 Thread Jaroslaw Kijanowski
https://jira.jboss.org/jira/browse/JBRULES-2154 Thanks. Edson Tirelli wrote: Jarowslaw, Could you please open a JIRA for this. I need to investigate. Thanks, Edson 2009/7/1 Jaroslaw Kijanowski kijanow...@gmail.com mailto:kijanow...@gmail.com Hi, I've

Re: [rules-users] Creating custom selectors using the category property for deploying certain rules in guvnor

2009-07-01 Thread Jaroslaw Kijanowski
Hi, you may vote for this one ;) https://jira.jboss.org/jira/browse/GUVNOR-109 So far I have successfully used 'stateDescription' and 'creator', for sample rules look at this: https://jira.jboss.org/jira/browse/GUVNOR-108 Haven't tried to select by category - how about 'categorySummary'?

[rules-users] stream mode and DroolsStreamUtils

2009-06-30 Thread Jaroslaw Kijanowski
Hi, I'm using sliding windows (hence stream mode). Here's my rule: declare Sensor @role (event) end rule 'r' when Number( dv:doubleValue 1 ) from accumulate( Sensor( $v : value ) over window:length( 2 ), average( $v ) ) then System.out.println(dv); end Here's

Re: [rules-users] stream mode and DroolsStreamUtils

2009-06-30 Thread Jaroslaw Kijanowski
https://jira.jboss.org/jira/browse/JBRULES-2150 Thanks. Edson Tirelli wrote: Jaroslaw, This looks like a bug. Would you please open a JIRA and attach the info bellow as well as drools and mvel version used? Thanks, Edson 2009/6/30 Jaroslaw Kijanowski kijanow...@gmail.com

Re: [rules-users] Drools Guvnor DB setup issue.

2009-06-23 Thread Jaroslaw Kijanowski
What error? Can you paste the server log? Maybe it's the white space before 'brms' in your connection url? Maybe you didn't provide the driver jar? Cheers, Jarek ami...@hsenidmobile.com wrote: hi everyone, I had problem in setting up a Database (mysql) with Drools Guvnor. wht i did

Re: [rules-users] help

2009-06-19 Thread Jaroslaw Kijanowski
Can you try *the same versions* of the plugin+runtime and Guvnor. GA should work. SHIMI Abdelouahad ( Prestataire ) wrote: I was deploy Guvnor(drools-5.0.0.CR1-guvnor) as an exploded archive on the JBoss Application Server(version jboss-4.2.3.GA). And I was * Create categories, ok *

Re: [rules-users] ResourceChangeNotifier and subscribeResourceChangeListener()

2009-06-08 Thread Jaroslaw Kijanowski
Hi, maybe this helps: http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e1123 Resource scanning is not on by default, it's a service and must be started, and the same is true for notification. Both can be done via the ResourceFactory. Have a

Re: [rules-users] Guvnor - assigning roles to users

2009-05-06 Thread Jaroslaw Kijanowski
Hi, here's my understanding: Roles are only then taken from JAAS, if you *disable* fine grained authorization (set enable-role-based-authorization to false). There are two roles that are available if you use JAAS: admin and non-admin. So you can use JAAS for *authentication*, no problem. You can

Re: [rules-users] Guvnor Package Builds The EGT w/ver. 5.0.0 CR1

2009-05-06 Thread Jaroslaw Kijanowski
Hi, same happens if you update your rule in Guvnor. The rule agent won't pick up the changes; you have to rebuild the whole package. Same for EGT. So it looks fine to me what you're seeing. Cheers, Jarek On Wed, May 6, 2009 at 8:05 PM, Ingold, Jonathan jonathan.ing...@jackson.com wrote:

Re: [rules-users] Error creating field accessors ... in Guvnor

2009-02-25 Thread Jaroslaw Kijanowski
Try with lower case field names. J Michael Dean wrote: Started new model in Guvnor and declared two fact types. Nothing else involved. Source code that is provided from Guvnor is shown below. But when I try to build the package, or create a scenario, I get error [package configuration

Re: [rules-users] Getting facts from external source using 'from' and parametrized method call

2009-01-23 Thread Jaroslaw Kijanowski
Did you set the global on your session? http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e948 Cheers Przemysław Różycki wrote: Sorry for responsing myself, but I'm still working on it and found that when factSource is a fact, not global, the rule works very well.

Re: [rules-users] Guvnor deployment exception

2009-01-23 Thread Jaroslaw Kijanowski
It tries to create the file in $JBOSS_HOME/bin and this can be changed in components.xml https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-guvnor/html_single/index.html#d0e127 Raphael Duarte Paiva wrote: Hi! I'm using JBoss 4.2.3.GA

Re: [rules-users] Getting facts from external source using 'from' and parametrized method call

2009-01-23 Thread Jaroslaw Kijanowski
And did the stack trace change? Can you post more details (drl, java src)? Przemysław Różycki wrote: Yes, I did. This was the first thing I've checked. Best regards, Przemek Jaroslaw Kijanowski pisze: Did you set the global on your session? http://downloads.jboss.com/drools/docs/4.0.7.19894

Re: [rules-users] Re: Guvnor - bind variables not working

2008-11-25 Thread Jaroslaw Kijanowski
Hey Dave, attaching a screen shot, works fine on my side on FF 2.0.18 and 3.0.3. Please create a jira with a screen shot, if it still fails for you. Thanks, Jarek David Sinclair wrote: This is still not working in M3 On Fri, Nov 7, 2008 at 12:39 PM, David Sinclair [EMAIL PROTECTED]

Re: [rules-users] One question about Database interface

2008-07-08 Thread Jaroslaw Kijanowski
This may be helpful: http://www.ee.pw.edu.pl/~kijanowj/index.php?site=articlesarticle=2_drools_hibernatelang=en Cheers, Jarek Senlin Liang wrote: Thanks. Where could I find the related manual or instructions? I searched through the doc for drools, and the email archive, there is really no

Re: [rules-users] One question about Database interface

2008-07-08 Thread Jaroslaw Kijanowski
Mapping is the job of Hibernate, not Drools ;) To be able to manage data in/from a database (persist, read,...) you need to configure Hibernate and one of these config steps is to provide the mapping. Cheers, Jarek Senlin Liang wrote: Hi, Thanks a lot! The information is really helpful.

Re: [rules-users] logging

2008-06-18 Thread Jaroslaw Kijanowski
May be you could store the names of every fired rule in a global by putting drools.getRule().getName() into a list on the RHS. Then you could get all rules in your package ( pkg.getRules() ) into another list and diff both collections (another_list.removeAll(list) ). Thalupula Ravi wrote: Hi,

Re: [rules-users] Running Drools 4 examples

2008-06-18 Thread Jaroslaw Kijanowski
Ron Kneusel wrote: Greetings! I am attempting to run the HelloWorld example for Drools 4. I have Eclipse 3.3 setup on Windows with the Drools plugin. I have created a project with the Drools examples and added all the Drools .jar files to the project. Everything compiles. When I initially

Re: [rules-users] Re: access to in working memory generated objects

2008-06-18 Thread Jaroslaw Kijanowski
Hi, it may also help to have a look at the PetStore example. Alexander Claus wrote: I want to use rules which shall generate as a consequence a new java object. The GUI of my application shall display the new generated objekt. but how can the GUI of my application get informed by the rule

Re: [rules-users] how to write regular expressions in drools..

2008-05-30 Thread Jaroslaw Kijanowski
Hi, you have to escape characters with regexp meaning (see docs for details). Try this: email matches @\[A-Za-z0-9\]* phone not matches d{3}-d{3}-d{4} Moreover I guess your rule is anyway broken, you will get a cross product of Orders, so I would remove There is an Order

Re: [rules-users] Using global in LHS

2008-05-30 Thread Jaroslaw Kijanowski
, memberOf, etc must be a field. catId is a field, advertisment is a global. To have it fixed try is of type Advertisment=catId memberOF advertisment Cheers, Jarek Cheers Markus On Thu, May 29, 2008 at 2:48 PM, Jaroslaw Kijanowski [EMAIL PROTECTED] wrote: Hi, there are two issues

[rules-users] no-loop and update vs. PropertyChangeListener

2008-05-28 Thread Jaroslaw Kijanowski
Hi, I'm running the StateExampleUsingSalience example. It uses a fact with PropertyChangeSupport. AFAIUI I don't have to call update() every time I modify this fact in the RHS, when I want to have my rules to be reconsidered. I've modified the drl to look like this: rule a no-loop true

Re: [rules-users] No accumulator function found for identifier

2008-05-21 Thread Jaroslaw Kijanowski
). Whilst not ideal it works. cheers Steve On Tue, May 20, 2008 at 10:36 PM, Jaroslaw Kijanowski [EMAIL PROTECTED] wrote: Hi, when I create my own accumulate function, I add it to src/main/java/META-INF/drools.packagebuilder.conf and it works fine. However, eclipse is showing one error

Re: [rules-users] MissingPackageName Exception | Eclipse | brl to drl

2008-05-21 Thread Jaroslaw Kijanowski
Hi, as mentioned in the docs, you could use an ant task. So if you look at the sources drools-ant/src/main/java/org/drools/contrib/DroolsCompilerAntTask.java you will notice, that it adds the package file explicitly. In your case, try this: String rulePackageContent =

[rules-users] No accumulator function found for identifier

2008-05-20 Thread Jaroslaw Kijanowski
Hi, when I create my own accumulate function, I add it to src/main/java/META-INF/drools.packagebuilder.conf and it works fine. However, eclipse is showing one error: No accumulator function found for identifier: ... I've found this