[rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread rvkhakhkhar1
I have a rule which fires let's say every 5 secs.
I have thread which continously infuse facts to ksession simultaneoulsy.
For example,
At 5th sec, 
 I have 500 matching facts, with total 1000 facts

Before the next invocation I infuse another 1000 facts.
So, at 10th sec,
 Rule considers whole working memory including previously evaluated facts. I
expected only new facts to be evaluated as I'm running stateful session



--
View this message in context: 
http://drools.46999.n3.nabble.com/Timer-Cron-reevaluating-same-facts-again-and-gain-tp4019422.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Understanding Rules Firing Sequence

2012-08-29 Thread Vincent LEGENDRE
The learning is : for your case, where all your row in your table have an 
implicit priority and business logic, yes, don't hope that drools engine will 
guess that by itself. 

As far i understand, you expect the rules to trigger from top to bottom (or 
most specific to less), and stop when a rule has fired. 
Your problem is that you have a lot of rules with shared conditions which have 
different (and conflicting) actions. Using specificity strategy is a good 
idea (never tried, but it looks great), but that won't prevent other (less 
specific) rules to fired after the first specific rules has fired. In 
addition to specific strategy, you have to add a condition to test if your 
fees field is set or not. If you add a common column (you can hide it under 
guvnor) that test fees == null, then the first rule exec (so the most 
specific one) will set this field and prevent other rules to fire. 

So, please let drools manage the rules firing, but tune your rules/facts to fit 
your specific business logic, under drools (or any other expert-system) 
constraints. 


- Mail original -

De: tanug tanu.gu...@rupeelog.com 
À: rules-users@lists.jboss.org 
Envoyé: Mardi 28 Août 2012 13:44:25 
Objet: Re: [rules-users] Understanding Rules Firing Sequence 

Thanks everyone for your suggestions. 

so, basically, the learning is : 
I should not leave rule firing to Drools, and have a proper priority and 
exit condition. 
And, I cannot rely on specificity for rule selection (i was so hoping it 
would work) 


Thanks again, 
best regards 
Tanu 




-- 
View this message in context: 
http://drools.46999.n3.nabble.com/Understanding-Rules-Firing-Sequence-tp4019409p4019416.html
 
Sent from the Drools: User forum mailing list archive at Nabble.com. 
___ 
rules-users mailing list 
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread Wolfgang Laun
How do you determine when a fact is evaluated?

On 29/08/2012, rvkhakhkhar1 rvkhakhk...@gmail.com wrote:
 I have a rule which fires let's say every 5 secs.
 I have thread which continously infuse facts to ksession simultaneoulsy.
 For example,
 At 5th sec,
  I have 500 matching facts, with total 1000 facts

 Before the next invocation I infuse another 1000 facts.
 So, at 10th sec,
  Rule considers whole working memory including previously evaluated facts.
 I
 expected only new facts to be evaluated as I'm running stateful session



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Timer-Cron-reevaluating-same-facts-again-and-gain-tp4019422.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread Vincent LEGENDRE
I expected only new facts to be evaluated as I'm running stateful session 

It only works this way if you let your session alive in a separate Thread, 
using fireUntilHalt(). 
If you use fireAllRules() (by instance each 5s), then yes, everything will be 
re-evaluated, just as if it were a new session. 

NB : I hope you have something to clean up your facts too ! 

- Mail original -

De: rvkhakhkhar1 rvkhakhk...@gmail.com 
À: rules-users@lists.jboss.org 
Envoyé: Mercredi 29 Août 2012 11:58:51 
Objet: [rules-users] Timer Cron reevaluating same facts again and gain 

I have a rule which fires let's say every 5 secs. I have thread which 
continously infuse facts to ksession simultaneoulsy. For example, At 5th sec, I 
have 500 matching facts, with total 1000 facts Before the next invocation I 
infuse another 1000 facts. So, at 10th sec, Rule considers whole working memory 
including previously evaluated facts. I expected only new facts to be evaluated 
as I'm running stateful session 

View this message in context: Timer Cron reevaluating same facts again and gain 
Sent from the Drools: User forum mailing list archive at Nabble.com. 

___ 
rules-users mailing list 
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread rvkhakhkhar1
I'm maintaining count for each successful match.
So, let's say, if in next phase there are another 500 successful facts, the
count becomes 1500.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Timer-Cron-re-evaluating-same-facts-again-and-again-tp4019422p4019426.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread Wolfgang Laun
On 29/08/2012, rvkhakhkhar1 rvkhakhk...@gmail.com wrote:
 I'm maintaining count for each successful match.

Where, *exactly*, do you increment this counter?


 So, let's say, if in next phase there are another 500 successful facts, the
 count becomes 1500.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Timer-Cron-re-evaluating-same-facts-again-and-again-tp4019422p4019426.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread rvkhakhkhar1
I'm using fireUntilHalt(). Then too it's happening
I can't retract facts, as there might be other rule to be evaluated for
facts. ( which too have cron timer. So If I remove facts and when that rule
becomes active, there would be no firing)



--
View this message in context: 
http://drools.46999.n3.nabble.com/Timer-Cron-re-evaluating-same-facts-again-and-again-tp4019422p4019427.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread rvkhakhkhar1
In consequence part of the rule, there is a method call which increment the
count by one for each successful match



--
View this message in context: 
http://drools.46999.n3.nabble.com/Timer-Cron-re-evaluating-same-facts-again-and-again-tp4019422p4019429.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Timer Cron reevaluating same facts again and gain

2012-08-29 Thread Wolfgang Laun
There you are not counting evaluations of facts but executions of a rule.

If you have a timer on a rule with timer(5s 5s) it will fire for each
and every matching fact or combination of facts, as long as this match
continues for this particular fact or fact combination.

-W


On 29/08/2012, rvkhakhkhar1 rvkhakhk...@gmail.com wrote:
 In consequence part of the rule, there is a method call which increment the
 count by one for each successful match



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Timer-Cron-re-evaluating-same-facts-again-and-again-tp4019422p4019429.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Job Opportunity - Jboss, Drools, Java Architecht/Consultant

2012-08-29 Thread Pamela McGrath

I have a job opportunity available for a technology professional experienced in 
java, jboss and drools.  This is a great opportunity and I wanted to extend it 
to this community. I have included some information regarding the job, if you 
have anymore questions, are interested, or know someone who may be interested 
in this opportunity please contact me at pam...@ttechsolutions.net

Job Description

Java Technology professionals develop applications using Java technology, a 
bundle of related technologies from Sun Microsystems that allow for developing 
and running operating system-independent programs written in Java programming 
language. This role provides opportunity to further develop Drools skills.

Key responsibilities may include:

- Lead the technical design process by participating in the analysis of 
technical application requirements

- Guide the client through key architecture design decisions

- Provide recommendations on application and architecture for performance and 
scalability

- Conduct analyses that will identify functional requirements and technical 
specifications as related to people, processes and technology

- Implementing the technical infrastructure

- Provide oversight and support client technical directors in the integration 
of technical and application components

- Executing conversion plans and documenting possible improvements; identifying 
disruptions in the processes

- Lead the technical team



Basic Qualifications

* 5 years Java development experience

* 6 months of DROOLS experience

* 3 months of DROOLS Planner experience



Professional Skill Requirements

* Architecture design experience

* Tech lead experience tech lead experience

* Federal government / large corporation experience

* Ability to work as a team member

* Collaboration skills

* Ability to work creatively and analytically in a problem-solving 
environment

* Desire to work in an information systems environment

* Excellent oral and written communication skills

* Flexibility

* Time management skills


Pamela McGrath
Operations Coordinator | 
pam...@ttechsolutions.netmailto:pam...@ttechsolutions.net
T-Tech Solutions | 1779 W. Big Beaver Rd | Troy, MI 48084
(p) 248-616-9600 | (f) 248-928-0981 | 
http://www.ttechsolutions.nethttp://www.ttechsolutions.net/




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users