afaik that's not possible.
Basically the templates replace the value for @{param} with param.toString()
(that's why your approach is not working).
Regarding your concerns about performance: the templates are translated into
rules once -> afterwards there is no connection between the variables a
heers, Alex
Am 18.11.2013 um 14:13 schrieb Martin Minka :
> I had similar problem and it was solved in 6.0.0.CR5.
>
>
> 2013/11/18 Alexander Herwix
> Hey guys,
>
> using Drools 6 RC4. I have a simple rule which should cast an object into a
> specialized object (if
Hey guys,
using Drools 6 RC4. I have a simple rule which should cast an object into a
specialized object (if it is indeed a specialization) and insert that into the
session.
rule "Obj is SpecialObject"
salience 201
when
$mainObj : MainObj(obj.class == SpecialObject.class, $obj : obj)
, 5s] $last )
> then
> System.out.println($old);
> end
>
> -W
>
>
>
>
> On 03/11/2013, Alexander Wolf wrote:
>> Okey I got a little further: This works:
>>
>> rule "count old"
>> when
>> $le : LastEvent($ts : ev
to do what I want...but not as "niceley..." as expected.
-
On 02 Nov 2013, at 18:11, Alexander Wolf wrote:
> Drools 5.5.0 + Fusion / stateful session / STREAM mode
>
> Hi,
>
> I try to improve my rules using peephole technique (Thanks @W)
> I think I got it right
Drools 5.5.0 + Fusion / stateful session / STREAM mode
Hi,
I try to improve my rules using peephole technique (Thanks @W)
I think I got it right, but now I am stuck with a problem.
I want to keep a reference to my latest inserted event. Problem: the rule
"print old" gives me an Exception (see
Version: 5.5.0 Drools Expert + Fusion
Stateful ksession in STREAM mode
In an integration test, I ___sometimes_!!! (always the same variables... )
get the following Exception:
Exception in thread "Thread-1" java.lang.NullPointerException
at
org.drools.base.com.myApp.model.Measuremen
The full stack:
11:40:27.483 [main] WARN o.d.t.impl.DefaultTimerJobInstance - Unable to
execute timer job!
org.drools.runtime.rule.ConsequenceException: Exception executing consequence
for rule "set environment night" in MyPackageName:
java.lang.ClassCastException: org.drools.time.impl.Default
Wohoo... I finally tried 5.5.6 =(
1. Comments with # do not work anymore, only // works
2. Problem with CRON Timer
10:50:50.827 [main] WARN o.d.t.impl.DefaultTimerJobInstance - Unable to
execute timer job!
org.drools.runtime.rule.ConsequenceException: Exception executing consequence
for rule "s
Sometimes (I am not sure what the actual reason is yet ) I get following NPE
when I try to deserialize my ksessions:
java.lang.NullPointerException
at
org.drools.common.ConcurrentNodeMemories.getNodeMemory(ConcurrentNodeMemories.java:63)
at
org.drools.common.AbstractWorkingMemor
I think its this one:
http://www.redhat.com/rhecm/rest-rhecm/jcr/repository/collaboration/sites%20content/live/redhat/web-cabinet/home/resourcelibrary/whitepapers/brms-design-patterns/rh:pdfFile.pdf
correct me if I am wrong @Wolfgang
On 16.10.2013, at 22:09, kurrent93 wrote:
> Are you able to
Hey,
I try to use drools fusion to detect patterns in an event stream.
Each time an event occurs I insert it into my ksession and call fireAllRules().
Most of my rules need to reason over the newest event (the one that just came
in) in conjunction with events that happend before or after that.
Hey Laird,
right now I work on a new Java WebService (with Spring) that uses Drools to
accomplish complex event processing on sensor values (=events).
As I am relatively new to this, I can definitely not call it "best practice" or
anything the like. But so far it seems to work ;)
- I create a
going to be fixed in 5.6.0 ? (@Mark Proctor?)
- Alex
On 11.10.2013, at 16:09, Demian Calcaprina wrote:
> Hey Alexander,
>
> Would this be related to this?
>
> https://issues.jboss.org/browse/DROOLS-243
>
> If it is this one, you can do something like this a
[Drools 5.5.0 Final]
I wrote a webserver that keeps StatefulKnowledgeSessions running in Stream
mode. When the server is stopped, the sessions are serialized and stored in a
database. When the server is restarted, the existing sessions are restored /
deserialized.
Some time after recreating th
[Drools 5.5.0 Final]
Hey,
for using the marshaller I needed to add ProtoBuf jars to my project like this:
com.google.protobuf
protobuf-java
2.4.1
Is there any particular reason why it is not included in the drools jars or at
least mentioned in the documentation?
Apparently droo
Reading your answer again I just realized that you did not recommend to write
my own clock implementation. Therefore you may just ignore that question.
I am still curious what PR stands for though.
Alex
On 30.09.2013, at 17:44, Alexander Wolf wrote:
>
> Thanks Edson,
>
> - Wha
Thanks Edson,
- What exactly is a "PR" ? > I wouldn't mind helping with the documentation.
- how would I declare my own clock implementation in the session configuration?
I can't find any example for this. (?)
Alex
On 30.09.2013, at 16:23, Edson Tirelli wr
[SOLUTION]
I found a "solution/workaround" to this problem:
I create the session with JPAKnowledgeService.newStatefulKnowledgeSession() and
pseudo clock in configuration, feed in my old events -> and store the session
it a database.
When retrieving the session, I can set realtime clock in the
Drools 5.5
Hey guys,
Is it possible to replace the session clock of an existing stateful knowledge
session (STREAM mode) while it is running or at least by pausing and restarting
it?
I need to feed old events into the session to restore a certain session state
before switching the sessions t
taking into account the correct "zero" timestamp ($event1).
> Thanks for reporting this, I'll open a JIRA
> Davide
>
> On 09/18/2013 12:29 PM, Wolfgang Laun wrote:
>> Is the session being run via a single call to fireUntilHalt()?
>> -W
>>
>> On 18/09/20
[Drools Version 5.5.0 Final]
Hey -
I got an event E1 that is only valid, if the latest event E2 following E1
within 2 minutes has the value 1
--> I want have the rule fire 2 minutes after E1 but only if E1 is valid
This is my rule:
rule "inform about E1"
when
//event (T1) is the initi
Following rule does not work for me (see exception) - I got the impression that
having a calendar for a rule that uses "after" leads to this. Any ideas?
(Version 5.5.0 Final)
The point of time I get the exception is NOT within the defined calendar time
(the rule should actually be ignored at tha
Hey,
I use a lot of quartz calendars in my rules like this:
rule "my rule"
calendars "myCalendar"
when
But defining them in java is quite verbose. Also I often use the same calendar
for only one rule. I believe the calendar is part of the logic and therefore
don't like to initialize
I used to let drools set the timestamp of events automatically, but a new
requirement forces me to use @timestamp for my events.
Normally my events should come in the right order, but sometimes (as the events
origin from mobile devices) it can occur that the order is incorrect.
I tested with "w
The question is more or less where to begin.
1. If there is a Fact in working memory (e.g. "Person") and I invoke
fireAllRules() twice, I would expect to have the following rule fire both times:
rule "alwaysFire"
when
$room : Room( )
then
System.out.println("there is a room");
e
0sec after room was modified");
end
Somehow this rule triggers the "slidingTimeCount" rule activation again.
On 06.09.2013, at 10:39, Alexander Wolf wrote:
> Drools Version 5.5.0 FINAL
>
> Here's the code for session
ules)
Thread.sleep(1000*60*1);
ksession.dispose();
On 05.09.2013, at 12:02, Wolfgang Laun wrote:
> Hard to believe, but who knows.
>
> Drools version and session setup, please.
>
> -W
>
>
> On 05/09/2013, Alexander Wolf wrote:
>>
Hey guys,
I have a question regarding the expected transaction rollback behavior of
drools 6 in an JTA-Environment. It looks like I have successfully configured
drools within my app, however when I create a KieSession within a Transaction
and roll it back, there is still some data persisted to
Hey guys,
I wrote a rule to count the SensorEvents in my KnowledgeSession that have been
inserted via entry-point SensorEventStream over the last 3 seconds - but I only
want the event to fire, if there were any events in the last 3 seconds at all.
Problem: if there were no recent events, i sti
nalysis) solution so my current focus is on expert
> & fusion. But jBPM is also an important module that I'll need in the future.
> Maybe we can come togehter and create one feature rich grails plugin.
> Let me know if you're interested.
>
> Cheers
>
> -markus
>
share your plugin code with community ?
>
> Best regards,
> Martin
>
>
>
> 2013/9/3 Alexander Herwix
>> Hey guys,
>>
>> I'm working on a Grails plugin for Drools/Jbpm 6 and I have trouble to get
>> persistence working in a user friendly way. It woul
Hey guys,
I'm working on a Grails plugin for Drools/Jbpm 6 and I have trouble to get
persistence working in a user friendly way. It would be awesome if someone with
a better understanding of drools and especially drools spring integration could
help me to figure this out :)
I have considered
can
> use the VFS API.
>
>
> On Aug 13, 2013, at 8:40 AM, Alexander Herwix wrote:
>
>> Hey Mark,
>>
>> first of all thanks for the information but I disagree. I would see
>> providing a CRUD api as a helpful feature as this would provide a single
>
think about native mobile apps.
Anyway, keep up the good work.
Cheers, Alex
Am 12.08.2013 um 19:42 schrieb Mark Proctor :
>
> On 12 Aug 2013, at 18:28, Alexander Herwix wrote:
>
>> Hey guys,
>>
>> I really love the new wb-apps, but documentation is really pretty sp
Hey guys,
I really love the new wb-apps, but documentation is really pretty sparse right
now, so maybe you guys can help me out :)
Is there any documentation on the authoring REST-Api? I have already asked on
the jbpm forum, where they said that there should be one but that it's not
documente
I guess I had same issue.
At first - check your jar and make sure it is there.
Then make sure you don't override default Bundle-ClassPath.
And finally - try to specify full path ([package]/'RuleFile.drl)
Actually I've started with placing rule on a local disk and specifying path
to it (/home/user/
aders>Ignore-Package
+
org.drools.core;bundle-version="${drools.osgi.version}"
+!org.drools.*, *
+
+
org.drools.grid,org.drools.grid.impl,org.drools.container.spring
+
+org.drools.*
+
+
+
+
+
Alex
On
uality =
> org.drools.base.evaluators.EqualityEvaluatorsDefinition
> drools.evaluator.comparable =
> org.drools.base.evaluators.ComparableEvaluatorsDefinition
> drools.evaluator.set = org.drools.base.evaluators.SetEvaluatorsDefinition
> drools.evaluator.matches =
> org.drools.base.evaluators.MatchesEvaluatorsDefini
er/drools-osgi-bundles
> 4) Update the boot-bundles.properties so that Spring DM loads the OSGi
> dependencies
>
> https://github.com/droolsjbpm/droolsjbpm-build-distribution/blob/master/drools-osgi-bundles/org.drools.osgi.test/src/test/filtered-resources/boot-bundles.properties
>
Hello all!
Don't know if it is right list to ask, but I'm trying to make drools +
camel running on Fuse (ServiceMix container).
I couldn't even install OSGI drools artifacts for 5.3.1 version (because of
weird dependency on drools.core Snapshot),
but did it with v5.2.1. I used:
mvel2/2.1.0,
org.d
Hello.
Is it possible to turn off strict mode in Drools 5.2 or 5.3 like in 5.1? How
can i do it?
We use Drools 5.1 and we use lots of maps so we turned off strict mode. I
tried to switch to Drools 5.2 or 5.3 but setting
System.setProperty("drools.dialect.mvel.strict", "false") doesn't work with
t
from there.
This is not exactly an answer to your question but maybe it helps.
Alexander
2011/9/7 Amin Mohammed-Coleman :
> Hi
> Thought it would make sense to show some code:
> Properties prop = new Properties();
> ...
> prop.put("drools.wo
Hi,
Im pretty new to drools and have been going through the docs for the Expert and
guvnor. I have some basic unit tests running with the rules I am trying to
replicate from a legacy system. One of the rules my current system uses is to
check a property in an Object against a list of values a
t link right in the docs.
Regards,
Alexander
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Try change this line to "modify(cc) {}" or better, put the modification of
the cc (setElig...) inside the curly brackets: "modify(cc) { setElig... };
Alexander
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
s instead of giving a parameter
$po.getLatestTimestamp1(), $po.getLatestTimestamp2(), ...
Then you could bind these values to variables and you can avoid the eval
which costs only performance. Once you have bound timestamps you can
directly add a field constraint to pa
Thanks Alexander.
my question is in my table empcode colunm value first i am set some value
like this empcode="EMPCODE"
when a set some value in my TestCase's like...emp.setEmpCode("manya");
In this case it will change column value like this...
empcode="manya"
(empcode) has
already assigned some value? Isn't it a simple null-check?
empcode != null
Please explain your problem more detailled, if this is not an answer to your
question.
Alexander
___
rules-users mailing list
rules-users@lists.jboss.org
with java.util.Date instead of Timestamp, this expression
behaves well.
Alexander
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
component can access this new generated object from outside?
Have a look at org.drools.event.WorkingMemoryEventListener.
I think you find yourself how to use it.
Best regards.
Alexander Claus
___
rules-users mailing list
rules-users@lists.jboss.org
quot;processed"
by the rule, e.g with your ruleID, and to test everytime in the lhs if the
object of interest is not processed... This is ugly, but it works.
Hope I could help you, but, let me know, if you have found a better
solution.
Alexander Claus
Y" || "N"
which is the simplest solution which you should (!) have found even as a
beginner as I am.
Again: experiment with the language!
Alexander Claus
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
e a kind of meta-information about the facts, but if not,
think, if "can not be updated" is a kind of property, which can be expressed
as constraints on some facts and their fields.
Alexander Claus
___
rules-users mailing list
rules-use
he ready-to-use distributions of the
Drools download site. Either the binarys or the Eclipse plugin should
fulfill your needs.
Alexander Claus
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
ding done earlier in the rule.
Since clock support is introduced not until Drools 5, you have to insert a
virtual clock object in the working memory, which you have to update with
certain mechanism to the current system time.
If you have your solution without DSL it should not be difficult to cast
gin.)
For you this means: Change your 3rd line in rule to
$rulesServiceTest : RulesServiceTest( $tText : TText )
Now it should work.
I don't know, if this is a bug or if it is intended this way. Perhaps one of
the developers could say something about?
Alexander Claus
_
"sText", but you have declared "tText".
Alexander Claus
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
resting
document referenced: readme_dependencies.txt
Alexander
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
uration parameter at runtime.
Hope I could inspire you...
Alexander Claus
- Original Message -
From: "Bagwell, Allen F" <[EMAIL PROTECTED]>
To: "Rules Users List"
Sent: Thursday, June 05, 2008 7:14 PM
Subject: RE: [rules-users] Question about timing rules
rules which can be instantiated.
> BTW, I think you will be glad to know that Drools 5 brings
> a whole new bunch of features for CEP processing that will
> make your life so much easier, ...
That's nice. Unfortunately I have to develope the system now ... :o)
Alexander
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
l.
So, currently I mark each event occurring in the LHS of a rule in the RHS as
processed by this rule and check in the LHS, if the events are not processed by
the rule.
I know, not very elegant, but I found this to be the easiest way.
So, if you have suggestions how to overcome this lack of e
for
getting the rulename as this unique identifier string.
Thanks in advance.
Alexander Claus
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
From: "Edson Tirelli" <[EMAIL PROTECTED]>
To: "Rules Users List"
Date: Fri, 15 Jun 2007 11:33:52 -0300
Subject: Re: [rules-users] How to get value of global variable from one
rule to another
Alexander,
Remember that the LHS is always evaluated at assert time
f global variable from one rule to another
(Alexander Komissarov)
2. RE: How to get value of global variable from one rule
toanother (Anstis, Michael (M.))
3. Re: How to get value of global variable from one rule to
another (Edson Tirelli)
4. Running on z/OS... (jd
t decision you can advise me to save variables value between rules?
Thanks.
____
Regards,
Komissarov Alexander
mail: [EMAIL PROTECTED]
icq: 239128267
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
s-users] Newbie: Is this feasible w/ Drools?
To: Rules Users List
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Alexander,
Seems a really interesting project indeed!
Trying to answer:
1. I'm not sure what you mean by &q
individually defined
and run in such a way that they interact?
Thanks,
Alexander Richter
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
there maybe thousands of customers and thousands of books,
> hence potentially millions of rules. Instead to implement the rule, we end up
> having to use a SQL statement:
>
> when
> eval( (ExecuteSQL(select count(*) from CustomerRuleTable where
> customer = Requestin
Hi,
I am thinking of using JBoss Rules for implementing "sparse" lookup
tables, e.g. suppose I have a lookup table which contains data like this:
PostalCodeOrZIP StateOrProvince Country DistanceFromNorthPole
07645NJ USA1200
-NJ USA1100
-- USA1000
ED]>> wrote:
>
> So Alex, if I only want to use the old syntax that is in production,
> there is no way to implement my seemingly simple logic conditioning?
>
> Thanks for your help.
>
> On 2/18/07, Alexander Varakin < [EMAIL PROTECTED]
> <mailt
As far as I know this syntax is new and is available in SVN only, you
will have to wait till 3.1 is released or take source from SVN and build it.
Bill Zhang wrote:
> Hi Steven,
>
> Thank you very much for your help. Really appreciate.
>
> I still got the same error, Unexpected token '|'. I did no
72 matches
Mail list logo