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
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
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
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
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
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
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
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
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
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
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
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
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:
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
14 matches
Mail list logo