tag:blogger.com,1999:blog-5869426.post1279850148003003609..comments2024-01-16T10:48:25.428+00:00Comments on Drools & jBPM: Goodbye Conflict Resolution Strategy, Hello Rule Dependency Meta RulesMark Proctorhttp://www.blogger.com/profile/03304277188725220501noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-5869426.post-66746252676702401522010-06-08T10:24:34.118+01:002010-06-08T10:24:34.118+01:00I wold like to have "live order". I chan...I wold like to have "live order". I change product and Drools reason new price and change it. Then it changes value netto, calculates tax and value brutto for line. It same for total order.<br />It is easy to write rules for it. But I can not find way to say that value brutto rule should be calculated only on change of value netto or tax type.<br /><br />I get into infinte loop now.<br /><br />Is there way to say that rule should be fired on change of some property ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5869426.post-55510220022105929822010-06-05T19:18:40.772+01:002010-06-05T19:18:40.772+01:00As an example of dynamic salience look at this drl...As an example of dynamic salience look at this drl, where we need to chose the correct rule with the lowest distance from the monster to the pacman:<br /><a href="http://fisheye.jboss.org/browse/JBossRules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/monster.drl?r=HEAD" rel="nofollow">http://fisheye.jboss.org/browse/JBossRules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/pacman/monster.drl?r=HEAD</a>Mark Proctorhttps://www.blogger.com/profile/03304277188725220501noreply@blogger.comtag:blogger.com,1999:blog-5869426.post-62509773101198528392010-06-05T19:17:35.455+01:002010-06-05T19:17:35.455+01:00"What is even worse I can not find way to set..."What is even worse I can not find way to set up silence for Order fact lower than OrderLine becouse it seems that for drools there is no conflict there as there are separate facts."<br /><br />I'm not sure what it is you are saying here, maybe you can rephrase it. Salience does not have to be a number, it can also be an expression on the bound facts, as long as it resolves to a number. So you could have salience determined by the price comparison of two items.<br /><br />"Automatic ordering of facts would give spreadsheet like capablities."<br />See above, but there is also "ordering of rules" if you use sequential mode.Mark Proctorhttps://www.blogger.com/profile/03304277188725220501noreply@blogger.comtag:blogger.com,1999:blog-5869426.post-24628995484613268442010-06-05T09:08:27.110+01:002010-06-05T09:08:27.110+01:00I understand that in many cases salience is import...I understand that in many cases salience is important, becouse rules order is given.<br /><br />But I just look for some kind of calculation machine with advanced capblities for open source ERP where is not convinient to set up order of rules manulally.<br /><br />What is even worse I can not find way to set up silence for Order fact lower than OrderLine becouse it seems that for drools there is no conflict there as there are separate facts.<br /><br />Automatic ordering of facts would give spreadsheet like capablities.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5869426.post-70149958294807580862010-06-04T19:23:33.631+01:002010-06-04T19:23:33.631+01:00"What I'm suprised that it does not have ..."What I'm suprised that it does not have conflict reslotuion based on dependencies between rules."<br /><br />This is not the normal, and not something the majority of commercial or open source production rule engines have. Most Production rule systems are based around some variation of salience+depth or MEA/LEX. <br /><br />We are exploring this idea, but it's very much a research item.Mark Proctorhttps://www.blogger.com/profile/03304277188725220501noreply@blogger.comtag:blogger.com,1999:blog-5869426.post-17190252652903625092010-06-04T14:06:10.043+01:002010-06-04T14:06:10.043+01:00I'm just evaluating Drools as some kind of cal...I'm just evaluating Drools as some kind of calculation engine. What I'm suprised that it does not have conflict reslotuion based on dependencies between rules.<br />It would be very useful in many places.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5869426.post-71031843991975466302010-04-08T15:14:39.388+01:002010-04-08T15:14:39.388+01:00CRS will still be there and govern how the Agenda ...CRS will still be there and govern how the Agenda itself executes. But the meta rules provide a more declarative approach that works prior to the Agenda getting involved. It's similar in a way to ruleflow, in that it's just stopping activations reaching the Agenda. Just that ruleflow is procedural in nature and this will probably be declarative.<br /><br />Not sure what you mean by pluggable, the meta-rules will just be normal rules so you can write anything you want there.<br /><br />I think the hard bits will be getting regexp style matching on names, or even matching meta data. Allowing the Activations to match against groups of rules; as at that point you lose type safety, as different Activations could have different declarations.Mark Proctorhttps://www.blogger.com/profile/03304277188725220501noreply@blogger.comtag:blogger.com,1999:blog-5869426.post-36067820525548885612010-04-08T07:32:28.094+01:002010-04-08T07:32:28.094+01:00Effectively decoupling the conflict resolution fro...Effectively decoupling the conflict resolution from the engine. Cool - the rules governing conflict resolution are now implemented using the engine itself. Will the meta-rules be pluggable allowing people to implement their own conflict resolutions... not that I foresee the need, just adding to the flexibility and extensibility...Anonymoushttps://www.blogger.com/profile/06581771208570261964noreply@blogger.comtag:blogger.com,1999:blog-5869426.post-91601698915631623302010-04-07T17:33:10.722+01:002010-04-07T17:33:10.722+01:00that looks really cool.
It's a more declarativ...that looks really cool.<br />It's a more declarative approach!salaboyhttps://www.blogger.com/profile/09494115977280470360noreply@blogger.com