Re: [rules-users] not able to debug drools flow

2009-08-26 Thread Justin King
I'm also using eclipse galileo, Java 1.5, and XP SP3 and I'm having the same problem 2009/8/24 Jakob Marovt > Hi, > > I am using Eclipse 3.5.0, jdk 1.6.0_13-b03 and Drools 5.0 all on Windows XP > Professional SP3. > > Jakob > > > On Sat, Aug 22, 2009 at 11:47 PM, Kris Verlaenen < > kris.verlae..

Re: [rules-users] Adding rules at runtime

2009-08-26 Thread Justin King
Anyone at all? I still haven't found a way to do this. On Tue, Aug 25, 2009 at 11:03 AM, Justin King wrote: > Hi Everyone, > > I found an old example that shows how to add a rule at runtime: > > function void addRule(String pkgName, String rule, RuleBase ruleBase ) { > PackageBuilder builder

[rules-users] Fusion and the guided rule editor

2009-08-26 Thread Justin King
Hi everyone, I'm trying out the guided rule editor in the eclipse plug in but it does not seem to allow for the use of fusions temporal operators and event meta-data. Am I missing something here or is the guided editor a bit of a relic from version 4 that has not been updated? Cheers, Justin ___

Re: [rules-users] Using KnowledgeAgent with Stateful session

2009-08-26 Thread James Owen
Greetings: Nobody seems to be replying and I'm not really "qualified" to reply but I might be able to point you in the right direction. Long, long ago in a land far, far away we did a really cool project using Intelligent Agents and employed most of the technology from FIPA, The Foundati

Re: [rules-users] Cannot view Process Definitions in gwt-console

2009-08-26 Thread rbms
Thanks for the reply Kris, I finally found the issue. When file is uploaded from guvnor, looks like the compile package bytes property is not set in the repo. So I had to invoke rebuildPackages function from org.drools.guvnor.server.ServiceImplementation.loadRuleAsset function thanks -Ramesh

[rules-users] Using KnowledgeAgent with Stateful session

2009-08-26 Thread nestabur
Does anyone tried to use the knowledgeAgent with statefulSessions? I've tried to configure my rule engine obtaining unexpected behaviour. I configure my statefulSession as follows: wm = (ReteooStatefulSession) ((KnowledgeBaseImpl) kagent .getKnowledgeBase()).ru

[rules-users] Rule for Collection

2009-08-26 Thread Ashish Soni
Hi All , Can someone please help how can i write a rule for below condition - I have Student object which contains List of Courses public Class Person { private List courseList; } public Class Course { private String name; private int duration; } Now lets say the list of course inside

Re: [rules-users] Possible London Drools Boot Camp for October

2009-08-26 Thread Geoffrey De Smet
I won't make London as I don't have a budget for it. But I live in Gent, about an hour away from Lille, so I might be able to make it there if it's held there and there's an interest in drools-solver. Doing it in Lille during Devoxx (= JavaPolis) in Antwerp would waste to much time on commune in

Re: [rules-users] Running into Persistence Issues

2009-08-26 Thread David Sinclair
I already posted the solutions, I guess it is taking a while for it to show up :) On Wed, Aug 26, 2009 at 9:54 AM, Kris Verlaenen < kris.verlae...@cs.kuleuven.be> wrote: > Sanjay, > > Didn't know Oracle still defines so much restrictions. Could you test > which changes are required to make the ma

Re: [rules-users] Running into Persistence Issues

2009-08-26 Thread Kris Verlaenen
Sanjay, Didn't know Oracle still defines so much restrictions. Could you test which changes are required to make the mapping work in Oracle as well? You can easily change table and column names by adding the appropriate annotations in the corresponding Java classes: @Table(name = "xxx") for annot

[rules-users] Guvnor fails to vaildate rule, though same rule compiles and run successfully when compiled command line with ANT.

2009-08-26 Thread Codedrop
Recently upgraded from Drools 4.0.7 to 5.1.0 and have imported our rules into Guvnor. Unable to determine why the same rules will not correctly validate in Guvnor which prevents building a package for deployment. Sample Rule: salience 50 agenda-group "idia" when Root(iden

Re: [rules-users] New Operators

2009-08-26 Thread Edson Tirelli
Ahmed, Drools Fusion is an extension to Drools Expert. Everything you can do in Drools Expert, is also available in Drools Fusion. Please take a look at the Drools Expert manual: http://www.jboss.org/drools/documentation.html Regarding your questions: rule xyz when $a : Event( )

Re: [rules-users] java.lang.IllegalArgumentException: Could not parse knowledge.

2009-08-26 Thread Lindy hagan
Thanks Wolfgang,it worked. Never thought that copy , paste creates a problem :-) 2009/8/26 Edson Tirelli > >Lol, good catch Wolfgang. So I guess we need to improve our rule naming > escaping algorithm. > >[]s >Edson > > 2009/8/26 Wolfgang Laun > > Hi Edson, >> >> love this one – (!)

[rules-users] New Operators

2009-08-26 Thread Ahmed Hafsi
Hi Guys , I am using the latest version of drools fusion . Is it possible to create new operators ? For example I want to make the logic rule OR i.e : a :- b;c. I know I can make a rule for it like this :: rule _Rule when $a Event() $b Event(this after $a || this before $a) then //.. end can I e

Re: [rules-users] java.lang.IllegalArgumentException: Could not parse knowledge.

2009-08-26 Thread Edson Tirelli
Lol, good catch Wolfgang. So I guess we need to improve our rule naming escaping algorithm. []s Edson 2009/8/26 Wolfgang Laun > Hi Edson, > > love this one – (!) a marvellous case of To See and See Not ;-) > > Lindy copy-pasted the Vote.drl from the cited HTML page which must have > be

Re: [rules-users] Running into Persistence Issues

2009-08-26 Thread SBalakrishnan
Hi, Pasted below are the problems, the whole list is in the attached file DroolsTableCreationErrorLog..txt (with my intial post). Thanks again. -Sanjay SEVERE: Unsuccessful: create table Attachment (id number(19,0) not null, accessType number(10,0), attachedAt timestamp, attachmentContentId nu

Re: [rules-users] Running into Persistence Issues

2009-08-26 Thread David Sinclair
For this error SEVERE: Unsuccessful: create table Attachment (id number(19,0) not null, accessType number(10,0), attachedAt timestamp, attachmentContentId number(19,0) not null, contentType varchar2(255 char), name varchar2(255 char), size number(10,0) not null, attachedBy_id varchar2(255 char), T

Re: [rules-users] When is JPAWorkItemManager used in Drools Flow?

2009-08-26 Thread Alan . Gairey
Kris, As far as I can see, JPAWorkItemManager isn't used. When loadStatefulKnowledgeSession is called in class JPAKnowledgeServiceProviderImpl, a new instance of CommandBasedStatefulKnowledgeSession is returned. If you look at the getWorkItemManager method of this class, it returns an instance

Re: [rules-users] When is JPAWorkItemManager used in Drools Flow?

2009-08-26 Thread Kris Verlaenen
Alan, The JPAWorkItemManager should be used instead (automatically) as it is defined in the session configuration properties (earlier in the same method): props.setProperty( "drools.workItemManagerFactory", "org.drools.persistence.processinstance.JPAWorkItemManagerFactory" ); Are you encountering

[rules-users] When is JPAWorkItemManager used in Drools Flow?

2009-08-26 Thread Alan . Gairey
I've been doing some testing recently with the 5.1 snapshot of Drools (build 3280). The JPA state persistence in Drools Flow appears to be much more solid (no more NullPointerExceptions) - many thanks for this. One question I still have though is with the loading of existing sessions from the da