Re: [rules-users] RuleFlows created in Drools V5M2 can't be parsed in V5M4

2008-12-15 Thread Mark Proctor

keithnielsen wrote:
It appears that ruleflows created in V5M2 can't be parsed in V5M4. 
  
We changed the namespace from 4.0 to 5.0. If you update the namespace at 
the top, it should now work.


mark


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


Re: [rules-users] Ruleflows

2008-04-14 Thread Kris Verlaenen
A RuleFlow simply makes sure your rules are evaluated in a specific order.  
Both strategies are possible, but I believe there are some small differences:
 - If you first insert all your debts and then activate the ruleflow, all 
orders will progress through the ruleflow at the same time (e.g. first apply 
all rules of set1 and then set2).  If you would use separate ruleflows per 
debt, each debt can be handled independently.
 - It will sometimes be harder to identify one specific debt if you insert all 
your debts at once
I think using a separate ruleflow for each of the orders would be the best 
solution here, as each debt can and will be handled independently (you could 
have multiple working memories working in parallel to handle the load).

If you want to make sure only one rule gets activated in a specific ruleflow 
group, you can, as already stated earlier, use an activation group.  This will 
make sure only one of the rules in that activation group will be executed for 
that debt.  You could also manually deactivate the ruleflow-group in the rule 
consequence (using 
drools.getWorkingMemory().getAgenda().deactivateRuleFlowGroup("name")), but I 
would suggest using activation groups if possible (as they are more powerful 
and built for these kinds of things specifically).

Kris

  - Original Message - 
  From: Jonathan Guéhenneux 
  To: Rules Users List 
  Sent: Thursday, April 10, 2008 12:36 PM
  Subject: [rules-users] Ruleflows


  Hi,

  I have to compute the gravity of a debt according to a set of rules organized 
in a ruleflow. I will have to process about ten thousands debts every minute.
  There is no dependency between the debts. All the rules are applied to one 
debt.

  What is the best strategy?

  - Insert all the debts, and start the ruleflow process
   or
  - (Insert one debt, start the ruleflow process) for each debt

  Another question:

  If a rule "r1" in the ruleflow group "rfg1" is fired on a debt "d1", can a 
second rule "r2" in the same ruleflow group be fired on the same debt "d1"?


--
  Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger, c'est 
gratuit ! 


--


  ___
  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] Ruleflows

2008-04-10 Thread Jeffrey Delong

Why not try the second strategy you listed below:

- (Insert one debt, start the ruleflow process) for each debt

Since each debt is separate.

As for only firing one rule in the ruleflow group, try using the same 
activation-group attribute on each rule in the ruleflow group. 
Activation groups cause only a single rule in the same group to be 
activated.


Jeff

Jonathan Guéhenneux wrote:

I just constated its true. sadly (for me).
How can I do to make that only one rule per ruleflow group can be 
activated with one specific tuple?


I think that I can add an "attribute" in my business object, like 
"boolean gravityComputed" in order to activate only one time a gravity 
compute rule but thats not very clean. Is there any drools action to 
break the deactivate the current flow and activate the next one? and 
if yes, is it possible to call it from a rule?


    Subject: RE: [rules-users] Ruleflows
Date: Thu, 10 Apr 2008 11:45:51 +0100
From: [EMAIL PROTECTED]
To: rules-users@lists.jboss.org

IMO, the first.
 
Another answer; I believe RuleFlow controls the activation

sequence so IMO "yes". Kris, care to correct me?

*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of
*Jonathan Guéhenneux
*Sent:* 10 April 2008 11:36
*To:* Rules Users List
*Subject:* [rules-users] Ruleflows

Hi,

I have to compute the gravity of a debt according to a set of
rules organized in a ruleflow. I will have to process about
ten thousands debts every minute.
There is no dependency between the debts. All the rules are
applied to one debt.

What is the best strategy?

- Insert all the debts, and start the ruleflow process
 or
- (Insert one debt, start the ruleflow process) for each debt

Another question:

If a rule "r1" in the ruleflow group "rfg1" is fired on a debt
"d1", can a second rule "r2" in the same ruleflow group be
fired on the same debt "d1"?

Discutez gratuitement avec vos amis en vidéo ! Téléchargez
Messenger, c'est gratuit ! <http://www.windowslive.fr/messenger/> 



Plus de 15 millions de français utilisent Windows Live Messenger ! 
Téléchargez Messenger, c'est gratuit ! 
<http://www.windowslive.fr/messenger/>



___
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] Ruleflows

2008-04-10 Thread Jonathan Guéhenneux

I just constated its true. sadly (for me).
How can I do to make that only one rule per ruleflow group can be activated 
with one specific tuple?

I think that I can add an "attribute" in my business object, like "boolean 
gravityComputed" in order to activate only one time a gravity compute rule but 
thats not very clean. Is there any drools action to break the deactivate the 
current flow and activate the next one? and if yes, is it possible to call it 
from a rule?

Subject: RE: [rules-users] Ruleflows
Date: Thu, 10 Apr 2008 11:45:51 +0100
From: [EMAIL PROTECTED]
To: rules-users@lists.jboss.org










IMO, the first.
 
Another answer; I believe RuleFlow controls the activation 
sequence so IMO "yes". Kris, care to correct me?


  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan 
  Guéhenneux
Sent: 10 April 2008 11:36
To: Rules Users 
  List
Subject: [rules-users] Ruleflows


  Hi,

I have to compute the gravity of a debt according to a 
  set of rules organized in a ruleflow. I will have to process about ten 
  thousands debts every minute.
There is no dependency between the debts. All 
  the rules are applied to one debt.

What is the best strategy?

- 
  Insert all the debts, and start the ruleflow process
 or
- (Insert 
  one debt, start the ruleflow process) for each debt

Another 
  question:

If a rule "r1" in the ruleflow group "rfg1" is fired on a 
  debt "d1", can a second rule "r2" in the same ruleflow group be fired on the 
  same debt "d1"?


  
  Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger, 
  c'est gratuit ! 

_
Créez votre disque dur virtuel Windows Live SkyDrive, 5Go de stockage gratuit !
http://www.windowslive.fr/skydrive/___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Ruleflows

2008-04-10 Thread Anstis, Michael (M.)
IMO, the first.
 
Another answer; I believe RuleFlow controls the activation sequence so IMO
"yes". Kris, care to correct me?


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
Guéhenneux
Sent: 10 April 2008 11:36
To: Rules Users List
Subject: [rules-users] Ruleflows


Hi,

I have to compute the gravity of a debt according to a set of rules
organized in a ruleflow. I will have to process about ten thousands debts
every minute.
There is no dependency between the debts. All the rules are applied to one
debt.

What is the best strategy?

- Insert all the debts, and start the ruleflow process
 or
- (Insert one debt, start the ruleflow process) for each debt

Another question:

If a rule "r1" in the ruleflow group "rfg1" is fired on a debt "d1", can a
second rule "r2" in the same ruleflow group be fired on the same debt "d1"?


  _  

Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger,
 c'est gratuit ! 



smime.p7s
Description: S/MIME cryptographic signature
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users