Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2164
  • Last Modified:

Drools Decision Table

Hi,

Anyone has some experienced using Decision Table in Drools? I have created it successfully but it does not seem to be the right way. I created few RuleTable and when I tried to use drools.modifyObject, it causes the infinite loop. It seems that after modifying the object, it fires all the rules again and again.

Does anyone have the URL that points to the Decision Table example that contains more than 2-3 RuleTable? Or anyone has some solution for the problem above?

Thanks
David
0
suprapto45
Asked:
suprapto45
  • 5
  • 4
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
0
 
suprapto45Author Commented:
Thanks mayankeagle,

However, they only have one RuleTable. I do not have any problem dealing with one RuleTable. The problem comes if you modifyObject in many RuleTable. It seems that the refraction conflict is failed and it keeps looping the rules.

Thanks
David
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Sorry, will see if I can find it.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
suprapto45Author Commented:
Thx :)
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Haven't been able to catch hold of any :( will have to wait if somebody else has a sample.
0
 
suprapto45Author Commented:
No problem.

I have found the solution. The infinite loop is caused because after modifying the object by executing drools.modifyObject, the rules are re-executed. We need to have every check in every rule of the Drools. That solves the problem :).

David
0
 
suprapto45Author Commented:
I think that I will PAQ it by accepting my answer. What do you think mayankeagle?

David
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Sure.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
GranMod, I'm the only expert who posted on this page and as I have already given my suggestion, I don't think there is any need to wait for 4 days. I think such questions should be closed immediately.
0
 
GranModCommented:
PAQ-ing the question and refunding 500 points

Just making sure, thanks mayankeagle.

GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now