Re: [rules-users] Checking for a lack of an object

2011-08-18 Thread Raf
You must not add the parenthesis after *not.* * * Try this: rule "Flag missing Foos with values" when not Foo(stringProp=="blah", intProp==5) then System.err.println("A proper foo does not exist"); end Bye *Raf* On Fri, Aug 19, 2011 at 3:17 PM, Chris Richmond wrote: > How do I fire a ru

Re: [rules-users] Checking for a lack of an object

2011-08-18 Thread Wolfgang Laun
On 19 August 2011 15:17, Chris Richmond wrote: > How do I fire a rule if an object with certain characterstics does not > exists. > > For example my class Foo, if I have a rule: > > rule "Identify Foos with values" > > when > Foo(stringProp=="blah", intProp==5) > then > System.err

[rules-users] dialect java is not loading the facts in Drools

2011-08-18 Thread santhosh kumar
Hi, Can some one help in resolving the below issue or if there is any work around for this? There is a strange behaviour in terms of loading the facts using dialect java and mvel. Our requirement is that we should support dynamic changes to fact objects in the application without a restart. So, to

[rules-users] dialect java is not loading the facts

2011-08-18 Thread sanintel3
Hi, There is a strange behaviour in terms of loading the facts using dialect java and mvel. Our requirement is that we should support dynamic changes to fact objects in the application without a restart. So, to achieve that I am using jar classloader to load the fact objects into memory. So before

Re: [rules-users] Checking for a lack of an object

2011-08-18 Thread Chris Richmond
I forgot to mention I am using a StatefulKnowledgeSession and Stream mode... On 8/19/2011 3:17 AM, Chris Richmond wrote: > How do I fire a rule if an object with certain characterstics does not > exists. > > For example my class Foo, if I have a rule: > > rule "Identify Foos with values" > > when

[rules-users] Checking for a lack of an object

2011-08-18 Thread Chris Richmond
How do I fire a rule if an object with certain characterstics does not exists. For example my class Foo, if I have a rule: rule "Identify Foos with values" when Foo(stringProp=="blah", intProp==5) then System.err.println("A Foo was found!"); end So how do I check for lack of

Re: [rules-users] Guvnor 5.2 and Designer 1.0.0.054 "connection refused"

2011-08-18 Thread Tihomir Surdilovic
First you seem to be missing the "pwd" attribute in your xml which provides your user password, for example: You seem to have role-based auth turned on in Guvnor...what permissions does your guest user have for all packages in Guvnor? Designer queries Guvnor using it's REST api, and these oper

[rules-users] Guvnor 5.2 and Designer 1.0.0.054 "connection refused"

2011-08-18 Thread dhartford
Hey all, I'm trying to get the BPMN flow designer installed beside Guvnor on a jboss 5.1 system. It opens the editor fine, and things look ok until I try to save, at which point any work done for workflow designing disappears. I was getting a different connection refused error, which led me to a

[rules-users] dynamic time set

2011-08-18 Thread ehmkey
Hey, i want to set the seconds in timer ( int: 5s ) dynamic, but i cant manage this. Does a solution exist? i tried to timer ( int: globalVar s ) or with getters. Thanks for help. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-dynamic-time-set-tp3264896p326489

[rules-users] Guvnor Sample Rule

2011-08-18 Thread Sumeet Karawal
Hi, I am trying to create rule in Guvnor and runnig it in Java Application on Eclipse. I have gone through the mortgages example provided in the distribution. I am not sure that I am doing it correctly The steps I did are as follows : 1) Uploaded a POJO jar in Guvnor 2) Created a rule for chec

[rules-users] [guvnor] Formula builder (or freeform drl builder) for Guided Editor (business rule)

2011-08-18 Thread dhartford
Hey all, I'm using only Guvnor for my rule creation and testing to feel-out how well it would handle being the sole BRMS for the 80% scenarios. I understand the Drools IDE definitely has more power and features, but I'm looking at ways to give Business Analyst/non-coders more access and ability to

Re: [rules-users] 'else' in rule

2011-08-18 Thread Mark Proctor
On 18/08/2011 10:26, snehils wrote: > Hi All, > > I want to take action when the condition in WHEN fails. Something like as > follows: > > WHEN > > THEN > > /ELSE > / for now you will need to do it as two rules. We are looking into adding else, probably later this year

[rules-users] 'else' in rule

2011-08-18 Thread snehils
Hi All, I want to take action when the condition in WHEN fails. Something like as follows: WHEN THEN /ELSE / Is it possible to have else part in rule? Or I have to make another rule for failed condition? I am using Drools 5.1.0 version. -- View this message in context:

Re: [rules-users] Rules with variable timers

2011-08-18 Thread Wolfgang Laun
No, there isn't - parameters of timer() must be constant values. But this can be solved using java.util.Timer with little additional effort. -W 2011/8/17 Shannon Hastings > Is there a way to write a rule in DRL that uses a timer or something that > is dynamic. I.E. I want the time that rule wa