[rules-users] can not be updated variable value

2008-06-18 Thread manyasri.m
Hi , In my employee table empcode already declared some value. I want, update some new value in empcode it will reject with response.empcode can not be updated. like condition: empcode can not be updated. Thanks, Manya... -- View this message in context: http://www.nabble.com/can-not-be-

Re: [rules-users] LHS reuse?

2008-06-18 Thread Barry Kaplan
Wow, I thought about using a dsl, but it seemed that I would need define the entire rule with the dsl. If I can mix the dsl and native rule language that would be quite enjoyable. Mark Proctor wrote: > > ... > You can use DSLs for this already, ... > -- View this message in context: http:/

Re: [rules-users] LHS reuse?

2008-06-18 Thread Mark Proctor
Barry Kaplan wrote: I have a set of rules that /all/ contain the following condition... positionQuantityAllocatedToLegs : Integer(intValue < position.quantity) from accumulate( StrategyLeg(priority > 1, instrument == equity, long

[rules-users] Is there a way to preventing the Agenda to not match against ALL rules when inserting a fact object

2008-06-18 Thread Amit Mhatre
Hi, I am migrating one of my projects to using the drools rule-flow. I have a bunch of RuleFlowGroups and just 1 fact object (where I am iterating over an external list and hence I execute the RuleFlow tens of thousands times, inserting a new fact object for each element in my list). Each RuleFlow

[rules-users] LHS reuse?

2008-06-18 Thread Barry Kaplan
I have a set of rules that /all/ contain the following condition... positionQuantityAllocatedToLegs : Integer(intValue < position.quantity) from accumulate( StrategyLeg(priority > 1, instrument == equity, longShort == LongShort.LON

Re: [rules-users] logging

2008-06-18 Thread Jaroslaw Kijanowski
Good point! Using an AgendaEventListener instead of logging every rule in the RHS is the way to go. Marcus Ilgner wrote: On Wed, Jun 18, 2008 at 10:29 AM, Jaroslaw Kijanowski <[EMAIL PROTECTED]> wrote: May be you could store the names of every fired rule in a global by putting drools.getRule()

[rules-users] Re: [rules-dev] Rule is firing on those objects for which that has already fired

2008-06-18 Thread Mark Proctor
Do not spam both user and dev mailing lists. This is a user question, contain it there. Details on how to better use the mailing lists are here http://labs.jboss.org/drools/lists.html Mark siddhartha banik wrote: Hi All, I am using Drools Stateful session with serialized Rule Base & Working

Re: [rules-users] RuleFlow Groups and retraction

2008-06-18 Thread Markus Helbig
i'll try to make a simple example and send it, currently i found a dirty hack. Cheers Markus On Wed, Jun 18, 2008 at 2:13 PM, Kris Verlaenen <[EMAIL PROTECTED]> wrote: >> it seems the activation for the second node is not cancelled also i >> do a retract in the rule > > The activation should hav

Re: [rules-users] RuleFlow Groups and retraction

2008-06-18 Thread Kris Verlaenen
it seems the activation for the second node is not cancelled also i do a retract in the rule The activation should have been removed from the ruleflow group. I just tested this with a small example and I do not seem to be able to reproduce this error, the retracted object seems to have resulted

[rules-users] Re: How to validate boolean values..using Drools

2008-06-18 Thread Alexander Claus
There was a question about Timestamp in my table. Condtion is : compare to start_timestamp can not be less than or equal Current Date. i am trying to like this , EmployeEx(eval(startTimestamp.after(new Timestamp(System.currentTimeMillis() In This case No Rules to fired.Please review this c

Re: [rules-users] Re: access to in working memory generated objects

2008-06-18 Thread Jaroslaw Kijanowski
Hi, it may also help to have a look at the PetStore example. Alexander Claus wrote: I want to use rules which shall generate as a consequence a new java object. The GUI of my application shall display the new generated objekt. but how can the GUI of my application get informed by the rule engi

Re: [rules-users] Re: access to in working memory generated objects

2008-06-18 Thread Marcus Ilgner
Hi, On Wed, Jun 18, 2008 at 1:17 PM, Alexander Claus <[EMAIL PROTECTED]> wrote: >> I want to use rules which shall generate as a consequence a new java >> object. >> The GUI of my application shall display the new generated objekt. >> but how can the GUI of my application get informed by the rule

Re: [rules-users] How to validate boolean values..using Drools

2008-06-18 Thread manyasri.m
Thanks Alexander. There was a question about Timestamp in my table. Condtion is : compare to start_timestamp can not be less than or equal Current Date. i am trying to like this , EmployeEx(eval(startTimestamp.after(new Timestamp(System.currentTimeMillis() In This case No Rules to fired

[rules-users] Re: access to in working memory generated objects

2008-06-18 Thread Alexander Claus
I want to use rules which shall generate as a consequence a new java object. The GUI of my application shall display the new generated objekt. but how can the GUI of my application get informed by the rule engine that it has generated a new object (Warning)? And how the GUI or any other java comp

Re: [rules-users] logging

2008-06-18 Thread Marcus Ilgner
On Wed, Jun 18, 2008 at 10:29 AM, Jaroslaw Kijanowski <[EMAIL PROTECTED]> wrote: > May be you could store the names of every fired rule in a global by putting > drools.getRule().getName() into a list on the RHS. > Then you could get all rules in your package ( pkg.getRules() ) into another > list a

[rules-users] access to in working memory generated objects

2008-06-18 Thread thomas kukofka
Hi, I want to use rules which shall generate as a consequence a new java object. The GUI of my application shall display the new generated objekt. but how can the GUI of my application get informed by the rule engine that it has generated a new object (Warning)? And how the GUI or any other java c

Re: [rules-users] Running Drools 4 examples

2008-06-18 Thread Jaroslaw Kijanowski
Ron Kneusel wrote: Greetings! I am attempting to run the HelloWorld example for Drools 4. I have Eclipse 3.3 setup on Windows with the Drools plugin. I have created a project with the Drools examples and added all the Drools .jar files to the project. Everything compiles. When I initially ra

Re: [rules-users] Different working memories/rulebases for different application issues?

2008-06-18 Thread Augusto Rodriguez
Hi Thomas, We're doing that in our project (we have different set of rules for different internal processes), and we have one rule base and every time we want to run the engine we execute: statefulSession.startProcess("rule.flow.id"); statefulSession.clearAgenda();

Re: [rules-users] logging

2008-06-18 Thread Jaroslaw Kijanowski
May be you could store the names of every fired rule in a global by putting drools.getRule().getName() into a list on the RHS. Then you could get all rules in your package ( pkg.getRules() ) into another list and "diff" both collections (another_list.removeAll(list) ). Thalupula Ravi wrote: Hi

[rules-users] Re: Rule is firing on those objects for which that hasalready fired

2008-06-18 Thread Alexander Claus
I need to write some rule which will *only* fire on newly inserted data points in Working Memory. Does Drools support any such feature which will help me to achieve this ? Any suggestion, how can I achieve this efficiently? I am inserting 6 matching DataObjects into Working Memory. Rule is gett