Hi all,
Sorry, I must make a correction the question:
the rule fires AFTER one ZZZBean enters the system.
After that it fires every time a new ZZZBean enters the system, and every
time then fires as many times as there are ZZZBeans in memory.
Best regards,
Esko
---
Esko Hujanen
www.ebsolut.f
What you report is very unlikely.
If this rule would fire when there are no facts of ZZZBean in the working
memory, then, referring to $tsb on the right hand side (e.g., by doing
$tsb.toString()) should result in a NullPointerException.
Please do this and provide the stack trace - but I don't thi
Hi all,
Here is the rule:
CLIP -->
rule "ZZZOver30" dialect "mvel"
when
$tsb : ZZZBean($prof : profileID)
$avg : Number( doubleValue > 30 ) from accumulate(
ZZZBean( $tempr : temperature, profileID == $prof) over
window:length( 3 ),
average( $tempr ) )
then
// do some
I assume Vehicle is in your POJO model?
I also assume your import statements (in your package configuration) also
include Vehicle (if it is in a different package to that in which your QA
Test is being defined)?
2011/10/17 Zink, John
> Thanks for the advice Mike. I did a quick read of the use
On 17/10/2011 16:44, eskomk wrote:
> Hi all,
>
> Does Quartz-Calendar work with Drools 5.1.1 ?
> See Drools-expert user guide:
> http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html/ch05.html#d0e3921
>
> We have configured Drools server as a web service with xml-files
> (knowled
2011/10/14 Geoffrey De Smet
> **
> In your doMove you're doing:
>
> crew.addActivity(activity);
> remainingActivities.remove(activity);
>
> If crew and/or remainingActivities are used by your score rules, the
> working memory should be notified of their changes.
> That's causing the corruption
>
Hi all,
Does Quartz-Calendar work with Drools 5.1.1 ?
See Drools-expert user guide:
http://docs.jboss.org/drools/release/5.2.0.Final/drools-expert-docs/html/ch05.html#d0e3921
We have configured Drools server as a web service with xml-files
(knowledge-services.xml, camel-server.xml, camel-client.x
Thanks for the advice Mike. I did a quick read of the user manual and was able
to setup a rule based on some of the fields I created in the POJO.
My next thing to try was to test a rule. So thru Guvnor I setup a "Test
Scenario".
When I click the "Run Scenario" I get a "[package configuration
Geoffrey is correct. Java erasure makes it impossible to match objects
based on generic types. It is also a best practice anyway to not use general
purpose collections as your business entities in your business model. Best
to use a properly defined business entity and then the generics issue is
Hi,
2011/10/14 Geoffrey De Smet
> **
>
> I was wondering now if I can achieve the same with the drools rule file.
>
> That's a bit harder, but not that hard.
> Look in the Drools Planner manual for "setRuleBase()" (as an alternative to
> using 's in your SolverConfig.xml)
> and look in the Drool
Thanks for the prompt response!
Best regards,
Martin
2011/10/17 Geoffrey De Smet
> **
> Java's generics are implemented by erasure,
> which implies that there no information available at runtime that a
> instance of a List is of a certain generic type, for example Boost.
> So I don't think this
Java's generics are implemented by erasure,
which implies that there no information available at runtime that a
instance of a List is of a certain generic type, for example Boost.
So I don't think this is possible.
Note that some things do work in erasure IIRC, like the generic type of
a defin
2011/10/17 Martin A :
> Hello,
> In my rules file I'd like to set something like this:
> rule "mayThrowDice"
> when
> $user : User($gp : gameplay)
> $gameplay(this == $gp)
> then
> exists List() {
> . some business logic
> }
This looks weird:
Hello,
In my rules file I'd like to set something like this:
rule "mayThrowDice"
when
$user : User($gp : gameplay)
$gameplay(this == $gp)
then
exists List() {
. some business logic
}
end
But it looks like there is no generics support. How c
14 matches
Mail list logo