Re: [rules-users] No activations created for condition with two checks for collection size

2011-01-14 Thread Tina Vießmann
I'm sorry. I've checked it again and again but I've not seen that I mixed something up. The condition can't be activated because there are no events in the working memory. Sorry. > Hi, > > I'm trying to check the following condition: > > when > $currentLowLimit : LimitViolationEven

[rules-users] No activations created for condition with two checks for collection size

2011-01-14 Thread Tina Vießmann
Hi, I'm trying to check the following condition: when $currentLowLimit : LimitViolationEvent ( limitTypes.size == 1 && limitTypes contains LimitTypes.ACTIVE_LOWER_LIMIT && parameterNames.size == 1 ) limitType and parameterNames are both Sets. I know events exists which satisfy the c

Re: [rules-users] How to say that two events have to happen during the same time interval

2011-01-13 Thread Tina Vießmann
ary 2011 15:45, Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> wrote: Hi, I'm trying to find a easy way to express that two events A and B have to happen during the same time interval. The events have each a duration > 0. A example condition could

[rules-users] How to say that two events have to happen during the same time interval

2011-01-13 Thread Tina Vießmann
Hi, I'm trying to find a easy way to express that two events A and B have to happen during the same time interval. The events have each a duration > 0. A example condition could be: The event A and B have to happen during the same 60 seconds. For me it includes several possibilites: * A can sta

Re: [rules-users] check if a

2010-11-01 Thread Tina Vießmann
List not contains $value but internally I suppose that it will work in the same way that the eval. On Mon, Nov 1, 2010 at 11:55 AM, Tina Vießmann mailto:tviessm...@stud.hs-bremen.de>> wrote: Is it possible to write the following conditions without using eval

Re: [rules-users] check if a

2010-11-01 Thread Tina Vießmann
with $valueList not contains $value but internally I suppose that it will work in the same way that the eval. On Mon, Nov 1, 2010 at 11:55 AM, Tina Vießmann mailto:tviessm...@stud.hs-bremen.de>> wrote: Is it possible to write the following conditions without using eval?

Re: [rules-users] check if a

2010-11-01 Thread Tina Vießmann
Sorry for the broke subject. :( > Is it possible to write the following conditions without using eval? > > > $object : MyObject ( $valueList : valueList ) // of type List > $ value : Value ( // other restrictions > && eval( !($valueList.contains($value)) ) ) > > > Thank you :

[rules-users] check if a

2010-11-01 Thread Tina Vießmann
Is it possible to write the following conditions without using eval? $object : MyObject ( $valueList : valueList ) // of type List $ value : Value ( // other restrictions && eval( !($valueList.contains($value)) ) ) Thank you :) Tina ___

Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-29 Thread Tina Vießmann
Event contains a reference to kagent's kbuilder. You can use it to see what happened. } }); Best, Esteban Aliverti - Developer @ http://www.plugtree.com <http://www.plugtree.com> - Blog @ http://ilesteban.wordpress.com On Sun, Oct 24, 2010

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-10-29 Thread Tina Vießmann
have time to take a look at it :( Could you please provide me a simple test project where I can see this issue? Best, Esteban Aliverti - Developer @ http://www.plugtree.com <http://www.plugtree.com> - Blog @ http://ilesteban.wordpress.com

Re: [rules-users] Question about Rete Tree example with NotNode in "Drools JBoss Rules 5.0 Developers Guide"

2010-10-28 Thread Tina Vießmann
t, why is the condition "address == $address" still missing in the related figure? Or do I not see something? > see book errata at > https://www.packtpub.com/support?nid=4009 > > > From: rules-users-boun...@lists.jboss.org

Re: [rules-users] Activate/Deactivate parts of the rule sets

2010-10-28 Thread Tina Vießmann
fault) group is automatic, after all group rules have been "exhausted". I think this is what you mean with your #2 Solution 1 could be used, too; efficiency's not a problem. -W -W On 28 October 2010 02:08, Tina Vießmann mailto:tviessm...@stud.hs-

[rules-users] Activate/Deactivate parts of the rule sets

2010-10-27 Thread Tina Vießmann
Hi, I'm thinking about how to activate/deactivate parts of the rule set during runtime. I'm doing some brainstorming about that and would be happy, if I could get more experienced input. ;-) What I want to do: I have several rules where I process 4 different objects separate and some rules pro

[rules-users] Question about Rete Tree example with NotNode in "Drools JBoss Rules 5.0 Developers Guide"

2010-10-26 Thread Tina Vießmann
Hi, I'm working through the explanations about Rete Trees in chapter 12 of "Drools JBoss Rules 5.0 Developers Guide" on page 264-265. I have a problem in understanding the input of the NotNode. The rule says: when $address : Address ( addressLine == "Rossa Avenue" ) not (

Re: [rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-25 Thread Tina Vießmann
.. ) over window:last( 150 ), > count( 1 ) ) > > So the above pattern triggers if you have less than 20 events in > the last 150... > > Edson > > 2010/10/22 Tina Vießmann: >> Hi, >> >> I'm working on a use case where I want to know if 20 even

Re: [rules-users] Starting engine using fireUntilHalt and inserting no facts results in 50% CPU usage

2010-10-25 Thread Tina Vießmann
> You can call fireAllRules after every event changing the state of the facts > or of the ruleflow. So it's not recommended to insert more than one event and then calling fireAllRules()?! > When you do event stream processing and use the time > inside your rules, the time is a change event too.

[rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-24 Thread Tina Vießmann
What's the best way for checking for errors when using the following code for creating a kbase? // ResourceChangeScanner ResourceChangeScannerConfiguration sconf = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration(); sconf.setProp

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-10-24 Thread Tina Vießmann
is is a bug. Best, Esteban Aliverti - Developer @ http://www.plugtree.com <http://www.plugtree.com> - Blog @ http://ilesteban.wordpress.com 2010/8/24 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Thank you for the explanation, Esteban.

Re: [rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-24 Thread Tina Vießmann
thout time.. but each time that you have an EventA and not an EventB the will be activated 2010/10/22 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Yeah, normally I would solve it that way. But you're using a time (1d) which I unfortunately don't know off in my s

Re: [rules-users] Starting engine using fireUntilHalt and inserting no facts results in 50% CPU usage

2010-10-24 Thread Tina Vießmann
Thank you, Jürgen. > fireUntilHalt uses one processor with 100%. You have a dualcore, so it's > 50%. It's by design like this. Where can I find more techincal/performance specification about drools? > You can: > - Call fireAllRules after every insert if you have no ruleflow. > > - Use fireAllRul

[rules-users] Starting engine using fireUntilHalt and inserting no facts results in 50% CPU usage

2010-10-23 Thread Tina Vießmann
Hi, I'm experimenting with asimple Fusion application. I'm using fireUntilHalt() to start the engine. When I start my application it uses nearly 50% of my CPU without any facts being insert. This remains while my application is idle. Why is that?? My machine has a 2Duo T9300 with 2,5GHz an JDK6

Re: [rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-22 Thread Tina Vießmann
for that right? something like $a: EventA() not EventB(this after[1d] $a) On Fri, Oct 22, 2010 at 5:49 PM, Tina Vießmann mailto:tviessm...@stud.hs-bremen.de>> wrote: Hi, I'm working on a use case where I want to know if 20 events with a specific value are contained

[rules-users] [FUSION] Detect the absence of an event when you don't know that the event is missing.

2010-10-22 Thread Tina Vießmann
Hi, I'm working on a use case where I want to know if 20 events with a specific value are contained in at maximum the last 150 events. So far I know what have to do. ;-) My problem is that as extension to my condition, the rule shall also trigger if one ore more events are missing. But I don't

Re: [rules-users] installing Drools using maven

2010-10-19 Thread Tina Vießmann
10/19 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Hi again, maybe I should specify what exactly I want to do. I'm developing a project in a team. We're using the eclipse IDE. I would like to configure maven the way that it builds the eclipse proje

Re: [rules-users] installing Drools using maven

2010-10-19 Thread Tina Vießmann
Hi again, maybe I should specify what exactly I want to do. I'm developing a project in a team. We're using the eclipse IDE. I would like to configure maven the way that it builds the eclipse project, downloads the drools library and adds the drools library to the projects build path. I kno

[rules-users] installing Drools using maven

2010-10-19 Thread Tina Vießmann
Hi, I would like to install drools for one of my projects using maven. (I've already ask the maven mailinglist. They said I shall ask here, because it's Drools related.) I've set up the repository and the drools reference in my projects POM file. Jboss Drools Nexus Repository https

Re: [rules-users] Performance differeneces using "before" or "after"

2010-09-14 Thread Tina Vießmann
x27;t change it. Thanks anyway :) > For a pair of events, the performance will be the same with > before/after. If you have more than 2, though, best would be to use > sliding windows. > > Edson > > 2010/9/14 Tina Vießmann: >> Hi, >> >> I've mentio

[rules-users] Performance differeneces using "before" or "after"

2010-09-14 Thread Tina Vießmann
Hi, I've mentioned the test case I'm working on before. It's: If a certain value exceeds a limit more than X times within Y minutes/hours, do something. ~> Count = X , time = Y During a talk with other developers it came up that by intuition the men would have chosen a other approach th

Re: [rules-users] JMS Messenger

2010-09-08 Thread Tina Vießmann
That's even more than a single sentence. Thank you! :) Am 08.09.2010 14:45, schrieb Mark Proctor: On 08/09/2010 13:27, Tina Vießmann wrote: In this case I would like to ask a non-Drools-question to Camel-experienced developers: Would it be useful in case of a very simple using of J

Re: [rules-users] JMS Messenger

2010-09-08 Thread Tina Vießmann
ybe a sentence should state the recommendation considering the pipeline chapter in Drools Expert User Guide 5.0!? Thanks :) CJ Am 08.09.2010 13:39, schrieb Mark Proctor: On 08/09/2010 12:21, Tina Vießmann wrote: I've looked at the Drools Expert User Guide for version 5.0. There it

Re: [rules-users] JMS Messenger

2010-09-08 Thread Tina Vießmann
I've looked at the Drools Expert User Guide for version 5.0. There it's chapter 3.3.8.5 On 7 September 2010 01:14, Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> wrote: Hi, I'm using JMS (especially Apache ActiveMQ) in my application. Righ

[rules-users] JMS Messenger

2010-09-06 Thread Tina Vießmann
Hi, I'm using JMS (especially Apache ActiveMQ) in my application. Right now, I'm manually establishing the JMS connection, extracting my Java objects from the JMS messages and inserting the objects into the knowledge base. It's simple without any hype. Until now, I've always missed the chapt

Re: [rules-users] How can generated facts/events be published?

2010-08-29 Thread Tina Vießmann
e. Of course, a TopicPublisher could also be (field of) some fact, but this shouldn't be necessary for such a central service. -W On 29 August 2010 19:16, Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> wrote: Hi, I've got a simple question. How can I get

[rules-users] How can generated facts/events be published?

2010-08-29 Thread Tina Vießmann
Hi, I've got a simple question. How can I get generated facts out of the memory (for publishing them using JMS)? Thanks :) Tina ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-08-24 Thread Tina Vießmann
X Esteban Aliverti - Developer @ http://www.plugtree.com <http://www.plugtree.com> - Blog @ http://ilesteban.wordpress.com 2010/8/23 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Hi, I'm getting a two red highlighted outputs in eclipse

Re: [rules-users] Stream Mode with Temporal Reasoning and Event Lifecycle Management

2010-08-23 Thread Tina Vießmann
is help in memory until explicitly retracted. Edson 2010/8/23 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Hi, I'm thinking about something. Maybe anyone can tell me. The Stream Processing Mode of Drools Fusion provides automatic lifecycle managment.

[rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-08-23 Thread Tina Vießmann
Hi, I'm getting a two red highlighted outputs in eclipse if I modify my rules file during run time. Besides that the modifications seem to work. What does it mean? The full output I get when the resource change is detected is listed below. The bold lines are the concerned ones. Thanks for

[rules-users] Creating a KnowledgeBase using a KnowledgeAgent, KnowledgeAgentConfiguration and KnowledgeBaseConfiguration

2010-08-23 Thread Tina Vießmann
Hi, I want to create a KnowledgeBase using stream processing mode, getting its resources from an change-set xml and getting the updated when resources are changed. So far I'm aware I need a KnowledgeAgent and a configuration for the kagent and the kbase. My code is: // create knowledge b

[rules-users] Stream Mode with Temporal Reasoning and Event Lifecycle Management

2010-08-23 Thread Tina Vießmann
Hi, I'm thinking about something. Maybe anyone can tell me. The Stream Processing Mode of Drools Fusion provides automatic lifecycle managment. For my understandings this is based on the sliding windows used inside the rule conditions, the @expires metadata and the @delay metadata. Am I righ

[rules-users] KnowledgeAgent detects resource changes and updates but nothing changes

2010-08-18 Thread Tina Vießmann
Hi, I've set up a knowledge agent the change set configuration. While running the application I'm changing the rules file and the agent detects the change and rebuidls the knowledge base. But after that the output that should have changed didn't change. Thank you! :) Greetings Tina Here

Re: [rules-users] Inserting new Object

2010-08-13 Thread Tina Vießmann
properly before you can call any methods, e.g. Set set = new HashSet() watcher.setValueSet( set ); set.add(...) -W 2010/8/13 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Hi Edson, I can't provide a test case. But I've figured out what the exception are

Re: [rules-users] Inserting new Object

2010-08-13 Thread Tina Vießmann
urn watcher; } Thanks for your help! :) Tina Am 13.08.2010 01:14, schrieb Edson Tirelli: Hi Tina, Can you provide a test case? Edson 2010/8/12 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Hi again ... I would like to insert a new generated objec

Re: [rules-users] Inserting new Object

2010-08-12 Thread Tina Vießmann
ce) at java.lang.Thread.run(Unknown Source) Am 12.08.2010 22:00, schrieb Mauricio Salatino: can you explain what isn't working? can you share the error with us?? where are you doing the insert?in the RHS? On Thu, Aug 12, 2010 at 4:56 PM, Tina Vießmann mailto:tviessm...@stud.hs-bremen.de>>

[rules-users] Inserting new Object

2010-08-12 Thread Tina Vießmann
Hi again ... I would like to insert a new generated object into the knowledge base. It seems that insert (new Watcher()) is working. But Watcher watcher = new Watcher(); insert (watcher); isn't working? Why? Thank you for any explanations. :) Tina

Re: [rules-users] For each loop in drools

2010-08-12 Thread Tina Vießmann
gt;> I'm not sure whether you and Salboy are on the same wavelength. Tina, please do provide more details where and what you want to for-each-loop. Guessing is a waste of time... -W 2010/8/12 Tina Vießmann mailto:tviessm...@stud.hs-bremen.de&

Re: [rules-users] For each loop in drools

2010-08-12 Thread Tina Vießmann
wavelength. Tina, please do provide more details where and what you want to for-each-loop. Guessing is a waste of time... -W 2010/8/12 Tina Vießmann mailto:tviessm...@stud.hs-bremen.de>> Oh, do I need a loop xml definition? Good to know. -.-

Re: [rules-users] For each loop in drools

2010-08-12 Thread Tina Vießmann
that the variable that it's using is a list? On Thu, Aug 12, 2010 at 1:08 PM, Tina Vießmann mailto:tviessm...@stud.hs-bremen.de>> wrote: Hi, is it possible to use the for each loop in Drools? The engine grouses a type mismatch : cannot convert from element type

[rules-users] For each loop in drools

2010-08-12 Thread Tina Vießmann
Hi, is it possible to use the for each loop in Drools? The engine grouses a type mismatch : cannot convert from element type Object to Value Thanks :) Tina ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinf

Re: [rules-users] Exception: rule 'end_key' failed predicate

2010-08-12 Thread Tina Vießmann
Sorry, it seems that the exception concerned a typo somewhere else in my code. Am 12.08.2010 15:44, schrieb Tina Vießmann: Thank you, Edson. :) Will collection without generic marker work? For excample: valueSet : Set Because if it should work, it doesn't do for me. I'm

Re: [rules-users] Exception: rule 'end_key' failed predicate

2010-08-12 Thread Tina Vießmann
ou :) Tina Am 12.08.2010 14:56, schrieb Edson Tirelli: No generics. Sorry. Edson 2010/8/12 Tina Vießmann <mailto:tviessm...@stud.hs-bremen.de>> Hi, I'm receiving a exception when trying to run my application: [ERR 103] Line 44:24 rule &#

[rules-users] Is it possible to set the start time for the session clock to use?

2010-08-12 Thread Tina Vießmann
Hi, is it possible to manipulate the session clock so that it's using the actual time but e.g. the 05-Feb-2007 07h08min09s ? Thank you! :) Tina ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-use

[rules-users] Exception: rule 'end_key' failed predicate

2010-08-12 Thread Tina Vießmann
Hi, I'm receiving a exception when trying to run my application: [ERR 103] Line 44:24 rule 'end_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.END))}? in Watcher[55,0]: [ERR 101] Line 55:0 no viable alternative at input 'global' in rule end The relevant code is: decla

[rules-users] functions inside fact type declaration?

2010-08-09 Thread Tina Vießmann
Hi, is it possible to define a function/constructor inside a fact type declaration? If yes, how can it be done? Thank you :) Tina ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Meaning of the metadata 'key'

2010-08-09 Thread Tina Vießmann
Hi, I think I'm to stupid to google, but I can't find an explanation what '@key' means. Can anyone please explain it to me or just give me a link? Sorry for the simple and stupid request and thank you for your help! Greetings Tina ___ rules-users mail

Re: [rules-users] Another solution for: Detecting more than 3 occurrences within 1 hour

2010-08-05 Thread Tina Vießmann
: get rid of all in $watcher.set, and $watcher end (What and count are somewhat redundant, but this avoids clumsy patterns.) Watcher should be declared as Event, with @expires, so they'll disappear with the (primary) Event each one is watching. Cheers -W 2010/8/5 Tina Vießmann <mailto:tviess

[rules-users] Another solution for: Detecting more than 3 occurrences within 1 hour

2010-08-05 Thread Tina Vießmann
Hi, I'm working on thinking in Drools rules. Right now I'm trying to solve this: The rule shall fire if _a special event occurs more than 3 times within 1 hour_. My _first thought of a solution_ was to count the count the detected events using a counter. But the counter has to be a global v

[rules-users] Fusion - Why needs the stream time-ordered input

2010-08-04 Thread Tina Vießmann
Hi, I'm restarting getting to know Drools (Fusion). Now I'm thinking about the stream processing mode. The documentation says the events must be time-ordered - they must be insert into the stream in the order in which they are occur so. Am I correct that it has to be that way, because the time

[rules-users] Drools Fusion - Correlating Events

2010-05-24 Thread Tina Vießmann
Hi :) In Complex Event Processing events (say A and B) correlating another event (say C) are causal related to the correlated event. Does DF internally remember these relation or does the developer has to define a corresponding relational attribute itself? Thanks :) Tina _

[rules-users] Error in Drools Fusion Example

2010-05-08 Thread Tina Vießmann
Hi, I'm trying to get the Drools Fusion from the download page example to run. But I'm getting the following error messages and I don't know why. File: broker.drl line 31 BuildError: Unable to build expression for 'consequence': Failed to compile: 1 compilation error(s): - (1,10) unqua

Re: [rules-users] Getting started with Drools Fusion

2010-05-07 Thread Tina Vießmann
based on > the current time, but otherwise anchored on each EventA that is received > by > the engine. > >Hope it helps, > >Edson > > 2010/5/7 Tina Vießmann > >> Hello everybody :) >> >> I'm completely new to the Drools universe. I've

[rules-users] Getting started with Drools Fusion

2010-05-07 Thread Tina Vießmann
Hello everybody :) I'm completely new to the Drools universe. I've discovered Drools, or more specifically Drools Fusion, by looking for a powerful CEP engine. I've read the DF user guide and came up with some issues about DF features. It would be great, if anyone can give me some explanations and

[rules-users] Getting started with Drools Fusion

2010-05-07 Thread Tina Vießmann
Hello everybody :) I'm completely new to the Drools universe. I discovered Drools, or more specifically Drools Fusion, by searching for a powerful CEP engine. I've read the DF user guide and came up with some issues about DF features. It would be great, if anyone can give me some explanations and/