Re: [rules-users] Can I create sub packages in Guvnor

2010-12-15 Thread Gerret Hansper
Hmm... I'm currently working with 5.0 which doesn't have built-in selectors. As you have said, I would consider this a workaround. I'm not so much in favour of relying on a manual build and configuration process with setting the right categories, choosing the respective selector and creating a sna

Re: [rules-users] Can I create sub packages in Guvnor

2010-12-15 Thread Jervis Liu
On 2010/12/16 4:15, Gerret Hansper wrote: > > Hello, > > if you have a package com.foo in Guvnor it is possible to create a new > package com.foo.bar. > Guvnor will then place the bar package beneath the foo package in the > KBaseTree. > But other than that the sub package doesn't have any relation

Re: [rules-users] Deploying Guvnor 5.1 on Glassfish v3

2010-12-15 Thread Jervis Liu
Unfortunately we have not got chance to try Guvnor on GlassFish. This task was on the list, but just havent got enough time. Not sure if anyone from the community has any experience with this. FYI, following doc shows how to deploy Guvnor on various containers: http://community.jboss.org/wiki/D

Re: [rules-users] Can I create sub packages in Guvnor

2010-12-15 Thread Harshit Bapna
Thanks Gerret. After sending the mail I also observed this behavior. The 'dot' approach has the inheritance issue which u have rightly raised in your response mail. Another way to achieve this, though its a workaround is Steps to create knowledgeBase with combination of package & category: 1. Ju

[rules-users] Drools Flow within Stateless Session in Drools 5.1

2010-12-15 Thread JeffMax
I am seeing some odd behavior where it seems that inference is not working when trying to use a flow process within a stateless knowledge session. I have tried to do the same thing in both stateful and stateless, and the behavior is different. It appears that if one rule inserts a fact in its rig

Re: [rules-users] Can I create sub packages in Guvnor

2010-12-15 Thread Gerret Hansper
Hello, if you have a package com.foo in Guvnor it is possible to create a new package com.foo.bar. Guvnor will then place the bar package beneath the foo package in the KBaseTree. But other than that the sub package doesn't have any relation to its parent, which I find unfortunate, too. I was hop

Re: [rules-users] Guvnor 5.1: Can't open assets - "Unable to validate package configuration"

2010-12-15 Thread Scott Mayne
My apologies, I should have looked a little deeper. The Guvnor Event Log showed I was missing a class in my POJO Model JAR; I fixed that and now everything is working fine. --- On Wed, 12/15/10, Scott Mayne wrote: From: Scott Mayne Subject: Guvnor 5.1: Can't open assets - "Unable to validate

[rules-users] Guvnor 5.1: Can't open assets - "Unable to validate package configuration"

2010-12-15 Thread Scott Mayne
Hi all, Using Guvnor 5.1, I'm unable to open assets and get this message: "* Unable to validate package configuration (eg, DSLs, models) for [CA.FH.BETACAU]. Suggestion completions may not operate correctly for graphical editors for this package. * Unable to get content assistance for this rule

Re: [rules-users] How to continue session, but remove all objects?

2010-12-15 Thread Wolfgang Laun
In this case, I would just use clear out the working memory: for( Person p: ... ){ insert( p ); ksession.fireAllRules(); for( Object object: ksession.getObjects() ){ ksession.retract( ksession.getFactHandle( object ) ); } } without recreating another ksession for t

Re: [rules-users] How to continue session, but remove all objects?

2010-12-15 Thread saynyshy
Sorry, I couldn't explain it correctly (first time you understand me correct) So, please see the code (no it was really realised as you said before -> every time start new session but...) I'l try to show example: private KnowledgeBase kbase; ... kbase = readKnowledgeBase(ruleflowfileSheme, rule

Re: [rules-users] Can I create sub packages in Guvnor

2010-12-15 Thread Harshit Bapna
Hello Jervis, According to my knowledge, Category is just a way of clubbing related stuff. If I use knowledge agent to fetch the rules from the guvnor repository than currently I can provide only the package name. http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/* mortgages*/L

Re: [rules-users] Drools - Repeated Events and Temporal Relations

2010-12-15 Thread rodih
Hi, Thanks for you reply. Your answer looks like a workable one. Thanks. I eventually implemented this by implemented using "not(...over window:time(1h)...)" with event duration configured to 1h Thanks -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drool

Re: [rules-users] Can I create sub packages in Guvnor

2010-12-15 Thread Jervis Liu
Sub package is not supported at the moment. Is there any specific reason why you want to use a sub package? You might be able to achieve same result using other things, like categories. Cheers, Jervis On 2010/12/15 22:13, Harshit Bapna wrote: > Hello All, > > I have gone through the Guvnor UI a

[rules-users] Can I create sub packages in Guvnor

2010-12-15 Thread Harshit Bapna
Hello All, I have gone through the Guvnor UI and I couldn't find a way to create sub packages under parent package. for ex: Under package Mortgage, I want to create subMortgage. *Also I found a method createSubPackage in RepositoryService but not able to get the UI way to create a subpackage.*

Re: [rules-users] Using GlobalArea in Guvnor

2010-12-15 Thread Jervis Liu
This is a bug. I've filed jira https://issues.jboss.org/browse/GUVNOR-1124. I will take a look into this jira next week. Thanks, Jervis On 2010/12/15 2:24, John Peterson wrote: >> I'm working with Guvnor 5.1.1 and I'm having an issue accessing >> >Declarative Models defined in the Global Area i

[rules-users] Deploying Guvnor 5.1 on Glassfish v3

2010-12-15 Thread alim
Hello, I downloaded Guvnor, web based BRMS (WAR) Version 5.1 and tried to deploy it on Glassfish v3. Unfortunately without success. To be more specific: I put "drools-5.1.1-guvnor.war" into {glassfish_home}\domains\{configuration}\autodeploy and started Glassfish within Eclipse 3.5, using Java

Re: [rules-users] How to continue session, but remove all objects?

2010-12-15 Thread Wolfgang Laun
Well, the subject of your email says "...remove *all *objects", but now you say you want to keep them... What's the distinction between the facts you want to keep and the ones you want to retract? If they are in separate classes, it's simple: either with a few rules or use kSession.getObjects(), w

Re: [rules-users] How to continue session, but remove all objects?

2010-12-15 Thread saynyshy
Thanks, for you advice, but is there any possibilities to realize it to use only one session (without new creation for each object from list) because now it is "cheap", but in great size of list and amount of rules it shouldn't be more so productive :-S I need to use one session for all obje

Re: [rules-users] "Negative" Rules

2010-12-15 Thread Wolfgang Laun
Have you looked at insertLogical()? "Changes made" is a very general term, could be anything... - -W 2010/12/15 Diego San Esteban > Greetings, > > > > How is it possible to implement a "rollback" in the KB? > Suppose that when retracting a fact, I want to undo the changes made. > Writing a ne

Re: [rules-users] How to continue session, but remove all objects?

2010-12-15 Thread Wolfgang Laun
Just call kSession.dispose() and create another kSession from the Knowledge Base. Session creation is cheap enough. -W On 15 December 2010 09:59, saynyshy wrote: > > Hello! > > I really need help and advice. > > I'm using StatefulKnowledgeSession(); > in loop I want to check Listls; > I have t

[rules-users] Automatic unsubscribing from a Guvnor resource

2010-12-15 Thread Chris Selwyn
My Guvnor is setup to save its repository in an Oracle database. However, the DBAs have a schedule that takes the database down at night for backup. I am finding that, if I set up the ResourceChangeNotifier/Scanner system then the resource gets unloaded from the KnowledgeBase when the database

[rules-users] "Negative" Rules

2010-12-15 Thread Diego San Esteban
Greetings, How is it possible to implement a "rollback" in the KB? Suppose that when retracting a fact, I want to undo the changes made. Writing a negative (opposite) rule isn't efficient, it means declaring the rule twice effectively. Also the negative rule is usually using lots of OR's and

[rules-users] How to continue session, but remove all objects?

2010-12-15 Thread saynyshy
Hello! I really need help and advice. I'm using StatefulKnowledgeSession(); in loop I want to check Listls; I have three rules. (in rules I add some more objects to memory drools.insert(listOfLongIds); drools.insert(listOfFloatAmounts); drools.insert(listOfStringNames);) How can I remove all ob