[rules-users] Exception when trying to find a field when debugging

2011-09-21 Thread skasab2s
Hello, I have an object with a timestamp field which I declared this way in my rule file: /declare VpAction @role( event ) @timestamp ( myGregorianCalendar.getTimeInMillis()) end / where myGregorianCalendar is from type java.util.GregorianCalendar. Using the rule file in my application

Re: [rules-users] Multiple variables problem..

2011-09-19 Thread skasab2s
Thanks for the reply. This is the full code: /declare ObjectOneTwo value1 : boolean value2 : boolean end rule "first rule" when $objectOneTwo : ObjectOneTwo (value1 == false) then $objectOneTwo.setValue1(true); update($objectOneTwo); end rule "second rule" when

[rules-users] Multiple variables problem..

2011-09-19 Thread skasab2s
Hello, I have a rule file with multiple boolean variables. Currently, I declare a new wrapper object for every single variable /declare Object1 value : boolean end declare Object2 value : boolean end / The approach works fine, but when I try wrapping the two variables in one object a not de

Re: [rules-users] Exception "cannot determine ruleInfo" when trying to debug a rule

2011-09-16 Thread skasab2s
Thanks for the reply, salaboy I moved my rule files to the "src" folder of a Java project and the exception is not shown. The debugging is successful. But when I try moving the original rules project to a java project and move the rules back to it, I still get the exception. What are the prerequi

Re: [rules-users] Exception "cannot determine ruleInfo" when trying to debug a rule

2011-09-15 Thread skasab2s
Hello salaboy, Sorry for the late reply. I am using the "Drools 5.2.0 runtime". And the "Drools eclipse plugin 5.2.0.Final". I still could not solve the problem. Thanks in advance, Svetlomir. -- View this message in context: http://drools.46999.n3.nabble.com/Exception-cannot-determine-ruleI

[rules-users] Exception "cannot determine ruleInfo" when trying to debug a rule

2011-09-12 Thread skasab2s
Hello, I'm using Eclipse 3.6.2 (Helios) and the Eclipse Plugin JBoss Tools 3.2.1.Final Stable Release. When I try to set a breakpoint within the rule concequence, I get the above mentioned exception. The breakpoint appers, but it is disregarded when debugging. Here you can see the whole descript

Re: [rules-users] Multiple StatefulKnowledgeSessions at a time?

2010-09-01 Thread skasab2s
Noone ? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Multiple-StatefulKnowledgeSessions-at-a-time-tp1108161p1401984.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing lis

[rules-users] Multiple StatefulKnowledgeSessions at a time?

2010-08-12 Thread skasab2s
Hello, (I'm sorry if this question already has been asked.) My company uses Drools for answering questions. For every asked question, a new StateFulknowledgeSession is created and after the question has been answerd by Drools, the StateFulknowledgeSession is being disposed. Now we have the situa

Re: [rules-users] Building a high-level editor for DRL-Files

2010-07-19 Thread skasab2s
Yes, something like guvnor for editing DSL-Rules but more GUI-based... Thanks, skasab2s -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Building-a-high-level-editor-for-DRL-Files-tp979051p979435.html Sent from the Drools - User mailing list archive at

[rules-users] Building a high-level editor for DRL-Files

2010-07-19 Thread skasab2s
similar to this feature) already implemented? We looked to the guided editor for .BRL-files but it is very restrictive (only one rule can be defined, no globals, etc). Can DSL-writing help us solve our problem? Many thanks, regards and sorry for the many questions, skasab2s. -- View this message in

[rules-users] Avoiding writing redundant rules

2010-07-19 Thread skasab2s
uleHasFired(value == true)) then //do some other job ) .. Or do you know some other useful tricks to avoid the redundancy I have written about? Thanks a lot for every idea and/or advice! Regards, skasab2s -- View this message in context: http://drools-java-rules-engine.4

[rules-users] converting .DRL --> .BRL

2010-07-19 Thread skasab2s
Hello, our company has a lot of .DRL- files, which we want to edit with the drools guided-rules editor (i.e. convert them to .BRL-files), does anyone know how it's done? Is there a howto anywhere ? Thanks a lot for any advice! skasab2s -- View this message in context: http://drools

Re: [rules-users] Problems with OR

2010-06-18 Thread skasab2s
ithout affecting the end result. Once again thanks for your advices anyway. Many regards, skasab2s. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Problems-with-OR-tp905689p905902.html Sent from the Drools - User mailing list archive at Nabble.com. ___

[rules-users] Problems with OR

2010-06-18 Thread skasab2s
t; ")) ) The problem is the following: when BOTH conditions are fulfilled, the rule fires twice, so I get redundant results in my final result, and this is not wanted. Is there a way to solve the problem? Any ideas ? Thanks a lot and many regards! skasab2s -- View this message in context:

[rules-users] Firing a rule if at least its two conditions are satified

2010-06-03 Thread skasab2s
you know how to implement this? Any ideas or hints? Many thanks and regards! skasab2s. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Firing-a-rule-if-at-least-its-two-conditions-are-satified-tp867432p867432.html Sent from the Drools - User mailing list

[rules-users] Drools Flow Loop

2010-05-21 Thread skasab2s
Hello, we want to use in our company a ruleflow with a loop. The loop should be executed every 5 minutes and should be exited on some conditions based on the facts (for example Fact1 ( value > 50)). This is our resulting ruleflow (see attached image). http://n3.nabble.com/file/n833857/ValidationB

Re: [rules-users] Validation using time driven rule execution

2010-05-13 Thread skasab2s
Thanks a lot for the precisous advices! Drools flow timer-nodes do the job for now (so I can create delays between the tasks of the doctor)! Regards, skasab2s -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Validation-using-time-driven-rule-execution

[rules-users] Validation using time driven rule execution

2010-05-13 Thread skasab2s
, drools fusion or drools flow, in order to implement the given situation? Can you short describe a solution? Thanks a lot and many regards, skasab2s -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Validation-using-time-driven-rule-execution-tp814472p814472.

Re: [rules-users] Number of rules left to be fired in the agenda

2009-10-19 Thread skasab2s
noone? skasab2s wrote: > > Hi guys, > > I have a simple question: do you know how to check dynamically: > > -if there are rules to be fired left in the agenda OR > > -how many rules to be fired are left in the agenda? > > How is the corresponding method calle

[rules-users] Number of rules left to be fired in the agenda

2009-10-17 Thread skasab2s
Hi guys, I have a simple question: do you know how to check dynamically: -if there are rules to be fired left in the agenda OR -how many rules to be fired are left in the agenda? Thanks and many greets. skasab2s -- View this message in context: http://www.nabble.com/Number-of-rules-left-to

Re: [rules-users] Division Operator in a Rule Condition

2009-10-03 Thread skasab2s
Thanks guys, it worked exactly this way, that you said: VpVentilation( $tidalVolume: tidalVolume, $breathingRate: breathingRate <= (105 * $tidalVolume)) Perfect! Best regards, skasab2s skasab2s wrote: > > Hello guys, > > I have this problem: > > I have an object

[rules-users] Division Operator in a Rule Condition

2009-10-02 Thread skasab2s
o check this one correctly in a rule condition? Thanks a lot for any ideas! skasab2s -- View this message in context: http://www.nabble.com/Division-Operator-in-a-Rule-Condition-tp25716712p25716712.html Sent from the drools - user mailing list archi

[rules-users] Drools Fuson and Deltas (differences)

2009-09-12 Thread skasab2s
Hi guys, I have the following problem, which I'm trying to solve with Drools-Fusion: Every 15 seconds(or more) happens an event, that contains an unique number. For example every 15 seconds(or more) comes a Temperature of a patient with a new different value as an event. The problem is, that it

[rules-users] Unable to run project drools-fusion

2009-09-05 Thread skasab2s
Hello guys, I have the problem that I can't run the project 'drools-example-fusion'. Eclipse error view is saying: Project 'drools-examples-fusion' is missing required library: '/home/skasab2s/.m2/repository/cglib/cglib-nodep/2.1_3/cglib-nodep-2.1_3.jar'

Re: [rules-users] Updating a Boolean object in the WM

2009-07-16 Thread skasab2s
Thanks Wolfgang! It worked great! The Declare-Command did it perfectly! Nice job! :) Svetlomir. -- View this message in context: http://www.nabble.com/Updating-a-Boolean-object-in-the-WM-tp24513225p24515020.html Sent from the drools - user mailing list archive at Nabble.com. _

[rules-users] Updating a Boolean object in the WM

2009-07-16 Thread skasab2s
Hi guys, I've been desperately trying to update a Boolean object, which is in the working memory. I have an initial rule that first inserts it: rule "Insert initial weanable value" salience 100 when then Boolean $weanable = false;

Re[rules-users] gistering ruleflow within a .DRL-File

2009-07-08 Thread skasab2s
Hi guys, does anyone know if it is possible to register a ruleflow-file within my .DRL-File? Or should I always do this using Java-Code? Thanks a lot! Svetlomir. -- View this message in context: http://www.nabble.com/Registering-ruleflow-within-a-.DRL-File-tp24388669p24388669.html Sent from

[rules-users] Checking variable values in rule conditions

2009-07-08 Thread skasab2s
Hi guys, as far as I understood, in the rule conditions I can check what objects are in the working memory and so on.. But can I check for example a global variable value which I have declared in the same .DRL-File? for example: global Boolean testWeanable when testWeanable==true then

[rules-users] check if the Agenda is empty from the ja

2009-06-20 Thread skasab2s
-- View this message in context: http://www.nabble.com/check-if-the-Agenda-is-empty-from-the-ja-tp24128379p24128379.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://

[rules-users] Drools Result

2009-06-19 Thread skasab2s
ing can be successful, remarks and so on. I heard that globals are good for returning result. Are there other approaches? Can't one rule create the result object and put it in the working memory so that I can fetch it from there using java code? Thanks a lot and regards! skasab2s -- View